=3 .ne \\$3 -->


Solaris  - NE_SHAVE (3)

NAME

ne_shave - trim whitespace from a string

CONTENTS

Author
Attributes
Notes

SYNOPSIS

#include <ne_string.h>

char *ne_shave (char *str, const char *whitespace);

advertisement

advertisement


DESCRIPTION

ne_shave returns a portion of str with any leading or trailing 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(ne_shave(s, ".!"));

AUTHOR

Joe Orton <[email protected].org>.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWneon
Interface StabilityVolatile

NOTES

Source for Neon is available on http://opensolaris.org.
Jump to page    or go to Top of page |  Section 3 |  OpenSolaris Man Main Index.


neon 0.25.5 NE_SHAVE (3) 20 January 2006
Generated by OpenSolaris Forum from /usr/share/man/man3/ne_shave.3 using man macros with tbl support.