Lines Matching defs:sret
86 * The parameter 'sret' is the return from a sscanf "%u%c". It is
99 static int scan_was_ok(int sret, char nextc, const char *ok_next_chars)
101 return sret == 1 ||
102 (sret == 2 && strchr(ok_next_chars, nextc) != NULL);
205 int sret; /* sscanf return (number of matches) */
207 sret = sscanf(p, "%u%c", &a, &nextc);
208 if (!scan_was_ok(sret, nextc, ",-"))
215 sret = sscanf(c1, "%u%c", &b, &nextc);
216 if (!scan_was_ok(sret, nextc, ",:"))
220 sret = sscanf(c1, "%u%c", &s, &nextc);
221 if (!scan_was_ok(sret, nextc, ","))