Initial commit

This commit is contained in:
Bahadir Balban
2008-01-13 13:53:52 +00:00
commit e2b791a3d8
789 changed files with 95825 additions and 0 deletions

20
libs/c/src/snprintf.c Normal file
View File

@@ -0,0 +1,20 @@
/*
Author: Ben Leslie <benjl@cse.unsw.edu.au>
*/
#include <stdio.h>
#include "format.h"
#include <assert.h>
int
snprintf(char *s, size_t size, const char *format, ...)
{
int ret;
va_list ap;
va_start(ap, format);
ret = vsnprintf(s, size, format, ap);
va_end(ap);
return ret;
}