Lines Matching defs:s
58 * Darwin in case it's useful as a guide later.
81 char c, *s;
87 for (s = component; (c = *s) != 0; s++) {
90 if ((hi = xtoi(s[1])) > 15 || (lo = xtoi(s[2])) > 15)
92 s[0] = hi*16 + lo;
94 * This was strcpy(s + 1, s + 3);
99 memmove(s+1, s+3, strlen(s+3) + 1);
208 CFStringRef s;
212 s = CFStringCreateWithCString(NULL, windows_string,
214 if (s == NULL) {
215 smb_error("CFStringCreateWithCString for Windows code page failed on \"%s\" ", -1,
219 s = CFStringCreateWithCString(NULL, windows_string,
221 if (s == NULL) {
222 smb_error("CFStringCreateWithCString for Windows code page failed on \"%s\" with kCFStringEncodingMacRoman - skipping",
228 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s),
232 smb_error("Couldn't allocate buffer for UTF-8 string for \"%s\" - skipping", -1,
234 CFRelease(s);
237 if (!CFStringGetCString(s, result, maxlen, kCFStringEncodingUTF8)) {
238 smb_error("CFStringGetCString for UTF-8 failed on \"%s\" - skipping",
240 CFRelease(s);
243 CFRelease(s);
258 CFStringRef s;
262 s = CFStringCreateWithCString(NULL, utf8_string,
264 if (s == NULL) {
265 smb_error("CFStringCreateWithCString for UTF-8 failed on \"%s\"", -1,
270 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s),
274 smb_error("Couldn't allocate buffer for Windows code page string for \"%s\" - skipping", -1,
276 CFRelease(s);
279 if (!CFStringGetCString(s, result, maxlen,
281 smb_error("CFStringGetCString for Windows code page failed on \"%s\" - skipping",
283 CFRelease(s);
286 CFRelease(s);