6 typedef struct separator_t separator_t;
9 char const *first; /**< Returned on the first call to sep_next(). */
10 char const *rest; /**< Returned on all further calls to sep_next(). */
14 * Returns first on the first call for s and rest on all further calls.
16 static inline char const* sep_next(separator_t* const s)
18 char const *const cur = s->first;
24 * Returns whether sep_next() has not been called for s.
26 static inline bool sep_at_first(separator_t const* const s)
28 return s->first != s->rest;