MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cups_apple_get_string

Function cups_apple_get_string

cups/usersys.c:1145–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143 */
1144
1145static int /* O - 1 if set, 0 otherwise */
1146cups_apple_get_string(
1147 CFStringRef key, /* I - Key (name) */
1148 char *value, /* O - String value */
1149 size_t valsize) /* I - Size of value buffer */
1150{
1151 CFStringRef sval; /* String value */
1152
1153
1154 if ((sval = CFPreferencesCopyAppValue(key, kCUPSPrintingPrefs)) != NULL)
1155 {
1156 Boolean result = CFStringGetCString(sval, value, (CFIndex)valsize, kCFStringEncodingUTF8);
1157
1158 CFRelease(sval);
1159
1160 if (result)
1161 return (1);
1162 }
1163
1164 return (0);
1165}
1166#endif /* __APPLE__ */
1167
1168

Callers 1

cups_init_client_confFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected