Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
snprintf.c File Reference
#include "watcomfx.h"
#include <sys/types.h>
#include <stddef.h>
#include <stdio.h>
#include "cdefs.h"
#include "prtypes.h"
#include <ncompat.h>
#include <varargs.h>

Go to the source code of this file.

Functions

int snprintf (char *str, size_t n, const char *fmt, va_alist)
int vsnprintf (char *str, size_t n, const char *fmt, va_list ap)

Variables

static int dummy = 0

Function Documentation

int snprintf ( char *  str,
size_t  n,
const char *  fmt,
va_alist   
)

Definition at line 29 of file snprintf.c.

{
       va_list ap;
#ifdef VSPRINTF_CHARSTAR
       char *rp;
#else
       int rval;
#endif
#if defined(__STDC__) || defined(XP_OS2_VACPP)
       va_start(ap, fmt);
#else
       va_start(ap);
#endif
#ifdef VSPRINTF_CHARSTAR
       rp = vsprintf(str, fmt, ap);
       va_end(ap);
       return (strlen(rp));
#else
       rval = vsprintf(str, fmt, ap);
       va_end(ap);
       return (rval);
#endif
}

Here is the call graph for this function:

int vsnprintf ( char *  str,
size_t  n,
const char *  fmt,
va_list  ap 
)

Definition at line 59 of file snprintf.c.

{
#ifdef VSPRINTF_CHARSTAR
       return (strlen(vsprintf(str, fmt, ap)));
#else
       return (vsprintf(str, fmt, ap));
#endif
}

Here is the call graph for this function:


Variable Documentation

int dummy = 0 [static]

Definition at line 75 of file snprintf.c.