return NULL if no end of header found */
| 283 | |
| 284 | /* return NULL if no end of header found */ |
| 285 | const char *skip_header(const char *p) |
| 286 | { |
| 287 | p = strstr(p, "\n\n"); |
| 288 | if (!p) |
| 289 | return NULL; |
| 290 | return p + 2; |
| 291 | } |
| 292 | |
| 293 | /* return 0 if OK, < 0 if error */ |
| 294 | int parse_tag(char *buf, int buf_size, const char *str, const char *tag) |