No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / skipblanks.c
blob45430f8d773d507dfe2e6ec5cee2a18162b1a1f9
1 /* $NetBSD$ */
3 /*++
4 /* NAME
5 /* skipblanks 3
6 /* SUMMARY
7 /* skip leading whitespace
8 /* SYNOPSIS
9 /* #include <stringops.h>
11 /* char *skipblanks(string)
12 /* const char *string;
13 /* DESCRIPTION
14 /* skipblanks() returns a pointer to the first non-whitespace
15 /* character in the specified string, or a pointer to the string
16 /* terminator when the string contains all white-space characters.
17 /* LICENSE
18 /* .ad
19 /* .fi
20 /* The Secure Mailer license must be distributed with this software.
21 /* AUTHOR(S)
22 /* Wietse Venema
23 /* IBM T.J. Watson Research
24 /* P.O. Box 704
25 /* Yorktown Heights, NY 10598, USA
26 /*--*/
28 /* System library. */
30 #include "sys_defs.h"
31 #include <ctype.h>
33 /* Utility library. */
35 #include "stringops.h"
37 char *skipblanks(const char *string)
39 const char *cp;
41 for (cp = string; *cp != 0; cp++)
42 if (!ISSPACE(*cp))
43 break;
44 return ((char *) cp);