MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


neon API reference                            NEBUFERAPEND(3)



NAME
     nebufferappend,  nebufferzappend,   nebufferconcat   -
     append data to a string buffer

SYNOPSIS
     #include 


     void nebufferappend (nebuffer *buf, const char *string,
                            sizet len);

     void nebufferzappend (nebuffer *buf, const char *string);

     void nebufferconcat (nebuffer *buf, const char *str,
                            ...);


DESCRIPTION
     The nebufferappend and nebufferzappend functions  append
     a  string  to  the  end of a buffer; extending the buffer as
     necessary. The len passed to nebufferappend specifies  the
     length  of the string to append; there must be no NUL termi-
     nator   in   the   first   len   bytes   of   the    string.
     nebufferzappend must be passed a NUL-terminated string.


     The nebufferconcat function takes a variable-length  argu-
     ment  list  following  str;  each  argument must be a char *
     pointer to a NUL-terminated string. A NUL pointer  must  be
     given  as the last argument to mark the end of the list. The
     strings (including str) are appended to the  buffer  in  the
     order  given. None of the strings passed to nebufferconcat
     are modified.


EXAMPLES
     The following code will output "Hello, world. And goodbye.".

     nebuffer *buf = nebuffercreate();
     nebufferzappend(buf, "Hello");
     nebufferconcat(buf, ", world. ", "And ", "goodbye.", NUL);
     puts(buf->data);
     nebufferdestroy(buf);


SEE ALSO
     nebuffer(3), nebuffercreate(3), nebufferdestroy(3)


AUTHOR
     Joe Orton .




neon 0.25.5       Last change: 20 January 2006                  1






neon API reference                            NEBUFERAPEND(3)



ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     box; cbp-1  cbp-1 l  l .  ATRIBUTE TYPE ATRIBUTE VALUE =
     Availability   SUNWneon = Interface Stability Volatile

NOTES
     Source for Neon is available on http:/opensolaris.org.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     
       ATRIBUTE TYPE     ATRIBUTE VALUE
    
     Availability         SUNWneon       
    
     Interface Stability  Volatile       
    

NOTES
     Source for Neon is available on http:/opensolaris.org.































neon 0.25.5       Last change: 20 January 2006                  2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™