return a pointer on the NUL char if not found
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
/* parsing related */
/****************************************************************************/
/* parsing related */
/****************************************************************************/
+static inline const char *m_strchrnul(const char *s, int c) {
+ while (*s && *s != c)
+ s++;
+ return s;
+}
+
static inline const char *skipspaces(const char *s) {
while (*s && isspace((unsigned char)*s))
s++;
static inline const char *skipspaces(const char *s) {
while (*s && isspace((unsigned char)*s))
s++;