1NE_SHAVE(3) neon API reference NE_SHAVE(3)
2
3
4
6 ne_shave - trim whitespace from a string
7
9 #include <ne_string.h>
10
11 char *ne_shave(char *str, const char *whitespace);
12
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
19 The following code segment will output "fish":
20
21 char s[] = ".!.fish!.!";
22 puts(ne_shave(s, ".!"));
23
25 Joe Orton <neon@lists.manyfish.co.uk>
26 Author.
27
29neon 0.30.2 30 September 2016 NE_SHAVE(3)