return srv;
}
-#define strlcpy _strlcpy
-static void
-strlcpy(char *to, const char *from, int l) {
- memccpy(to, from, '\0', l);
- to[l-1] = '\0';
-}
-
static char *
eat(char *s, int (*p)(int), int r) {
while(*s != '\0' && p(*s) == r)
char *e;
e = s + strlen(s) - 1;
- while(isspace(*e) && e > s)
+ while(e > s && isspace(*e))
e--;
*(e + 1) = '\0';
}