Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

ne_shave (3)

Name

ne_shave - trim whitespace from a string

Synopsis

#include <ne_string.h>

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

Description

NE_SHAVE(3)                   neon API reference                   NE_SHAVE(3)



NAME
       ne_shave - trim whitespace from a string

SYNOPSIS
       #include <ne_string.h>

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

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 <neon@lists.manyfish.co.uk>
           Author.

COPYRIGHT
ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/neon     |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.webdav.org/neon/neon-0.30.1.tar.gz.

       Further information about this software can be found on the open source
       community website at http://www.webdav.org/neon/.



neon 0.30.1                    23 September 2014                   NE_SHAVE(3)