C Library Functions                                            csconv(3)


NAME

     csconv - code set conversion function


SYNOPSIS

     #include "csconv.h"

     size_t csconv(csconv_t cd,
                   const char ** inbuf, size_t * inbytesleft,
                   char ** outbuf, size_t * outbytesleft);


DESCRIPTION

     The csconv() function converts the sequence of characters from one
     code set, in the array specified by inbuf, into a sequence of
     corresponding characters in another code set, in the array
     specified by outbuf.  The code sets are those specified in the
     csconv_open() call that returned the conversion descriptor, cd.
     The inbuf argument points to a variable that points to the first
     character in the input buffer and inbytesleft indicates the number
     of bytes to the end of the buffer to be converted.  The outbuf
     argument points to a variable that points to the first available
     byte in the output buffer and outbytesleft indicates the number of
     the available bytes to the end of the buffer.

     The semantics is the same as iconv(3).  See iconv(3) for more
     detail.


SEE ALSO

     csconv_open(3), iconv(3)
