Lines Matching refs:s
69 static char * xstrdup(const char * s) in xstrdup() argument
73 if (!s) in xstrdup()
76 len = strlen(s) + 1 ; in xstrdup()
79 memcpy(t, s, len) ; in xstrdup()
91 static unsigned strstrip(char * s) in strstrip() argument
94 char *dest = s; in strstrip()
96 if (s == NULL) return 0; in strstrip()
98 last = s + strlen(s); in strstrip()
99 while (isspace((int)*s) && *s) s++; in strstrip()
100 while (last > s) { in strstrip()
107 memmove(dest, s, last - s + 1); in strstrip()
108 return last - s; in strstrip()
296 void iniparser_dumpsection_ini(const dictionary * d, const char * s, FILE * f) in iniparser_dumpsection_ini() argument
303 if (! iniparser_find_entry(d, s)) return ; in iniparser_dumpsection_ini()
305 seclen = (int)strlen(s); in iniparser_dumpsection_ini()
306 fprintf(f, "\n[%s]\n", s); in iniparser_dumpsection_ini()
307 sprintf(keym, "%s:", s); in iniparser_dumpsection_ini()
330 int iniparser_getsecnkeys(const dictionary * d, const char * s) in iniparser_getsecnkeys() argument
339 if (! iniparser_find_entry(d, s)) return nkeys; in iniparser_getsecnkeys()
341 seclen = (int)strlen(s); in iniparser_getsecnkeys()
342 strlwc(s, keym, sizeof(keym)); in iniparser_getsecnkeys()
372 const char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys) in iniparser_getseckeys() argument
378 if (! iniparser_find_entry(d, s)) return NULL; in iniparser_getseckeys()
380 seclen = (int)strlen(s); in iniparser_getseckeys()
381 strlwc(s, keym, sizeof(keym)); in iniparser_getseckeys()