2 * This file is part of cparser.
3 * Copyright (C) 2012 Christoph Mallon <christoph.mallon@gmx.de>
10 typedef struct separator_t separator_t;
13 char const *first; /**< Returned on the first call to sep_next(). */
14 char const *rest; /**< Returned on all further calls to sep_next(). */
18 * Returns first on the first call for s and rest on all further calls.
20 static inline char const* sep_next(separator_t* const s)
22 char const *const cur = s->first;
28 * Returns whether sep_next() has not been called for s.
30 static inline bool sep_at_first(separator_t const* const s)
32 return s->first != s->rest;