1NE_SHAVE(3)                   neon API reference                   NE_SHAVE(3)
2
3
4

NAME

6       ne_shave - trim whitespace from a string
7

SYNOPSIS

9       #include <ne_string.h>
10
11
12       char *ne_shave (char *str, const char *whitespace);
13
14

DESCRIPTION

16       ne_shave  returns a portion of str with any leading or trailing characā€
17       ters in the whitespace array removed. str may be  modified.  Note  that
18       the return value may not be equal to str.
19
20

EXAMPLES

22       The following code segment will output"fish":
23
24       char s[] = ".!.fish!.!";
25       puts(ne_shave(s, ".!"));
26
27

AUTHOR

29       Joe Orton <neon@webdav.org>.
30
31
32
33neon 0.25.5                     20 January 2006                    NE_SHAVE(3)
Impressum