miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
vsnprintf.c File Reference
#include <miniOS/drivers/console.h>
#include <miniOS/io.h>
#include <miniOS/types.h>
#include <string.h>
Include dependency graph for vsnprintf.c:

Macros

#define OUTPUTCHAR(c)
#define OUTPUTSTRING(s)

Functions

char * __int_str (intmax_t i, char b[], int base, bool plusSignIfNeeded, bool spaceSignIfNeeded, int paddingNo, bool justify, bool zeroPad)
char * __uint_str (uintmax_t i, char b[], int base, bool plusSignIfNeeded, bool spaceSignIfNeeded, int paddingNo, bool justify, bool zeroPad)
void displayCharacter (char c, int *a)
void displayString (char *c, int *a)
int vsnprintf (char *str, size_t size, const char *format, va_list list)

Macro Definition Documentation

◆ OUTPUTCHAR

#define OUTPUTCHAR ( c)
Value:
do { \
*str++ = (c); \
chars++; \
if (chars >= size-1) { \
*str = '\0'; \
chars++; \
return chars; \
} \
} while(0)
uint16_t size
Definition irq.h:0

◆ OUTPUTSTRING

#define OUTPUTSTRING ( s)
Value:
do { \
const char *_s = s; \
while (*_s != '\0') { \
OUTPUTCHAR(*_s++); \
} \
} while(0)

Function Documentation

◆ __int_str()

char * __int_str ( intmax_t i,
char b[],
int base,
bool plusSignIfNeeded,
bool spaceSignIfNeeded,
int paddingNo,
bool justify,
bool zeroPad )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __uint_str()

char * __uint_str ( uintmax_t i,
char b[],
int base,
bool plusSignIfNeeded,
bool spaceSignIfNeeded,
int paddingNo,
bool justify,
bool zeroPad )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayCharacter()

void displayCharacter ( char c,
int * a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayString()

void displayString ( char * c,
int * a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vsnprintf()

int vsnprintf ( char * str,
size_t size,
const char * format,
va_list list )
Here is the call graph for this function:
Here is the caller graph for this function: