GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]




       #include <ixp.h>

       void ixp_pstring(IxpMsg *msg, char **s);


       Packs  or  unpacks a UTF-8 encoded string. The packed representation of
       the string consists of  a  16-bit  unsigned  integer  followed  by  the
       contents of the string. The unpacked representation is a nul-terminated
       character array.

       If msg->mode is MsgPack, the string pointed to by s is packed into  the
       buffer  at  msg->pos. If msg->mode is MsgUnpack, the address pointed to
       by  s  is   loaded   with   a   malloc(3)   allocated,   nul-terminated
       representation  of  the  string  packed  at  msg->pos.  In either case,
       msg->pos is advanced by the number of bytes read  or  written.  If  the
       action  would  advance  msg->pos  beyond  msg->end,  msg->pos  is still
       advanced but no other action is taken.


       IxpMsg(3), ixp_pstrings(3), ixp_pdata(3)

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.151 seconds. Last modified: November 04 2018 12:49:43.