repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
secondary cache feature in vm.
[minix.git]
/
lib
/
libc
/
stdio
/
snprintf.c
blob
efe4c4491b63010067517fc5232af8dcb8dccf05
1
/*
2
* snprintf - print limited formatted output on an array
3
*/
4
/* $Header$ */
5
6
#include <stdio.h>
7
#include <stdarg.h>
8
#include <limits.h>
9
#include
"loc_incl.h"
10
11
int
12
snprintf
(
char
*
s
,
size_t
n
,
const char
*
format
, ...)
13
{
14
va_list
ap
;
15
int
retval
;
16
17
va_start
(
ap
,
format
);
18
19
retval
=
vsnprintf
(
s
,
n
,
format
,
ap
);
20
21
va_end
(
ap
);
22
23
return
retval
;
24
}