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
isblank() implementation.
[minix.git]
/
lib
/
libc
/
stdio
/
sprintf.c
blob
5fe46af36ceb8869967a05c5a3bda1104cac3e63
1
/*
2
* sprintf - print 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
sprintf
(
char
*
s
,
const char
*
format
, ...)
13
{
14
va_list
ap
;
15
int
retval
;
16
17
va_start
(
ap
,
format
);
18
19
retval
=
vsnprintf
(
s
,
INT_MAX
,
format
,
ap
);
20
21
va_end
(
ap
);
22
23
return
retval
;
24
}
25