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]


NAME

       ixp_errbuf, ixp_errstr, ixp_rerrstr, ixp_werrstr, ixp_vsnprint

SYNOPSIS

       #include <ixp.h>

       char *ixp_errbuf(void);

       void ixp_errstr(char *buf, int nbuf);

       void ixp_rerrstr(char *buf, int nbuf);

       void ixp_werrstr(const char *fmt, ...);

       int      (*ixp_vsnprint)(char *buf, int nbuf, const char *fmt, va_list);

PARAMETERS

       buf    The buffer to read and/or fill.

       nbuf   The size of the buffer.

       fmt    A format string with which to write the errstr.

       ...    Arguments to fmt.

DESCRIPTION

       These  functions  simulate Plan 9's errstr functionality.  They replace
       errno in libixp. Note that these functions are not internationalized.

       ixp_errbuf(3)  returns  the  errstr  buffer  for  the  current  thread.
       ixp_rerrstr(3)  fills buf with the data from the current thread's error
       buffer, while ixp_errstr(3) exchanges buf's contents with those of  the
       current  thread's error buffer. ixp_werrstr(3) formats the given format
       string, fmt, via ixp_vsnprint(3) and writes it to the error buffer.

       ixp_vsnprint(3) may  be  set  to  a  function  which  will  format  its
       arguments  write  the  result  to  the  nbuf  length buffer buf(3). The
       default value is vsnprintf(3). The  function  must  format  '%s'  as  a
       nul-terminated  string  and may not consume any arguments not indicated
       by a %-prefixed format specifier,  but  may  otherwise  behave  in  any
       manner chosen by the user.

SEE ALSO

       ixp_vsmprint(3)



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