Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/snprintf.c

Source at commit 1406 created 12 years 10 months ago.
By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too.
1/*
2 * snprintf.c
3 */
4
5#include <stdio.h>
6#include <stdarg.h>
7
8extern int vsnprintf(char *buffer, size_t n, const char *format, va_list ap);
9
10int snprintf(char *buffer, size_t n, const char *format, ...)
11{
12va_list ap;
13int rv;
14
15va_start(ap, format);
16rv = vsnprintf(buffer, n, format, ap);
17va_end(ap);
18return rv;
19}
20

Archive Download this file

Revision: 1406