hush/libbb/skip_whitespace.c
Rob Landley ea224be6aa skip_whitespace() shouldn't claim its return value is const, it doesn't know
that and callers wind up typecasting it back.
2006-06-18 20:20:07 +00:00

19 lines
353 B
C

/* vi: set sw=4 ts=4: */
/*
* skip_whitespace implementation for busybox
*
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include <ctype.h>
#include "libbb.h"
char *skip_whitespace(const char *s)
{
while (isspace(*s)) ++s;
return (char *) s;
}