Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/snprintf.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 219 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * snprintf.c
3 */
4
5 #include <stdio.h>
6
7 int snprintf(char *buffer, size_t n, const char *format, ...)
8 {
9 va_list ap;
10 int rv;
11
12 va_start(ap, format);
13 rv = vsnprintf(buffer, n, format, ap);
14 va_end(ap);
15 return rv;
16 }