From af5649628116ac7219b36f43f4d7de3571e025b1 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 25 Oct 2010 18:41:15 +0200 Subject: moved str_skip_to_whitespace function --- src/base/system.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index 3d0d5cc7..e5ce1484 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -756,6 +756,22 @@ void str_sanitize_cc(char *str); */ void str_sanitize(char *str); +/* + Function: str_skip_to_whitespace + Skips leading non-whitespace characters(all but ' ', '\t', '\n', '\r'). + + Parameters: + str - Pointer to the string. + + Returns: + Pointer to the first whitespace character found + within the string. + + Remarks: + - The strings are treated as zero-termineted strings. +*/ +char *str_skip_to_whitespace(char *str); + /* Function: str_skip_whitespaces Skips leading whitespace characters(' ', '\t', '\n', '\r'). -- cgit 1.4.1