Lines Matching defs:text
19 /* Return the offset of the first newline in text or the length of
20 text if there's no newline */
21 static int newline_offset(const char *text)
23 const char *newline = strchr(text, '\n');
25 return strlen(text);
27 return (int)(newline - text);
121 char *text;
136 text = request(url);
137 if(!text)
140 root = json_loads(text, 0, &error);
141 free(text);
145 fprintf(stderr, "error: on line %d: %s\n", error.line, error.text);