2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Supplemental C function stpblk().
10 /*****************************************************************************
21 Searches for the first non-blank character in a string. A blank
22 character is defined as one that isspace() treats like one
23 (ie. spaces, tabs and newlines).
26 str - String to search.
29 A pointer to the first occurence of a non-blank character in str.
32 This function always returns a valid pointer as provided str isn't
33 NULL. If there are no non-blank characters in the string, a pointer
34 to the trailing '\0' is returned (ie. an empty string).
37 char *hello = " Hello";
40 printf( stpblk( hello ) );
43 printf( stpblk( empty ) );
46 printf( "%d", strlen( stpblk( hello ) ) );
49 printf( "%d", strlen( stpblk( empty ) ) );
59 ******************************************************************************/
61 if( str
== NULL
) return NULL
;
63 while( *str
!= '\0' && isspace( *str
) )