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       char *ne_shave(char *str, const char *whitespace);
12

DESCRIPTION

14       ne_shave returns a portion of str with any leading or trailing
15       characters in the whitespace array removed.  str may be modified. Note
16       that the return value may not be equal to str.
17

EXAMPLES

19       The following code segment will output "fish":
20
21           char s[] = ".!.fish!.!";
22           puts(ne_shave(s, ".!"));
23

AUTHOR

25       Joe Orton <neon@lists.manyfish.co.uk>
26           Author.
27
29neon 0.30.0                      31 July 2013                      NE_SHAVE(3)
Impressum