mongoose/docs/c-api/util.h/mg_skip.md

18 lines
670 B
Markdown
Raw Normal View History

---
title: "mg_skip()"
decl_name: "mg_skip"
symbol_kind: "func"
signature: |
const char *mg_skip(const char *s, const char *end_string,
const char *delimiters, struct mg_str *v);
---
2016-07-26 00:30:04 +08:00
Fetches substring from input string `s`, `end` into `v`.
Skips initial delimiter characters. Records first non-delimiter character
2016-07-26 00:30:04 +08:00
at the beginning of substring `v`. Then scans the rest of the string
until a delimiter character or end-of-string is found.
`delimiters` is a 0-terminated string containing delimiter characters.
Either one of `delimiters` or `end_string` terminates the search.
2016-07-26 00:30:04 +08:00
Returns an `s` pointer, advanced forward where parsing has stopped.