leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

snprintf.c File Reference
#include "leafnode.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for snprintf.c:

Go to the source code of this file.


static void fmtu (char *p, unsigned long u)
static void fmts (char *p, long s, char asign)
int ln_vsnprintf (char *str, size_t n, const char *format, va_list ap)
int ln_snprintf (char *str, size_t n, const char *format,...)

Function Documentation

◆ fmts()

static void fmts ( char *  p,
long  s,
char  asign 

format signed value s into p, prefix asign if its nonzero and the value is positive. asign is usually '+' or ' '.

Definition at line 59 of file snprintf.c.

References fmtu().

Referenced by ln_vsnprintf().

◆ fmtu()

static void fmtu ( char *  p,
unsigned long  u 

format unsigned value u into p

Definition at line 41 of file snprintf.c.

References len.

Referenced by fmts(), and ln_vsnprintf().

◆ ln_snprintf()

int ln_snprintf ( char *  str,
size_t  n,
const char *  format,

Definition at line 221 of file snprintf.c.

References ln_vsnprintf().

◆ ln_vsnprintf()

int ln_vsnprintf ( char *  str,
size_t  n,
const char *  format,
va_list  ap 

Definition at line 71 of file snprintf.c.

References fmts(), fmtu(), and len.

Referenced by ln_snprintf().