Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/stdio/snprintf.c
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdarg.h> | #include <stdarg.h> | ||||
#include "xlocale_private.h" | #include "xlocale_private.h" | ||||
#include "local.h" | #include "local.h" | ||||
int | int | ||||
snprintf(char * __restrict str, size_t n, char const * __restrict fmt, ...) | (snprintf)(char * __restrict str, size_t n, char const * __restrict fmt, ...) | ||||
{ | { | ||||
size_t on; | size_t on; | ||||
int ret; | int ret; | ||||
va_list ap; | va_list ap; | ||||
FILE f = FAKE_FILE; | FILE f = FAKE_FILE; | ||||
on = n; | on = n; | ||||
if (n != 0) | if (n != 0) | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |