neon API reference NESHAVE(3)
NAME
neshave - trim whitespace from a string
SYNOPSIS
#include
char *neshave (char *str, const char *whitespace);
DESCRIPTION
neshave returns a portion of str with any leading or trail-
ing characters in the whitespace array removed. str may be
modified. Note that the return value may not be equal to
str.
EXAMPLES
The following code segment will output"fish":
char s[] = ".!.fish!.!";
puts(neshave(s, ".!"));
AUTHOR
Joe Orton .
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWneon
Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
neon 0.25.5 Last change: 20 January 2006 1
|