Chameleon

Chameleon Commit Details

Date:2011-08-06 19:22:23 (8 years 3 months ago)
Author:Evan Lojewski
Commit:1296
Parents: 1295
Message:Add bcopy / sprintf to klibc
Changes:
A/branches/xZenu/src/modules/klibc/sprintf.c
A/branches/xZenu/src/modules/klibc/bcopy.c

File differences

branches/xZenu/src/modules/klibc/bcopy.c
1
2
3
4
5
6
7
8
9
10
11
/*
* memcpy.c
*/
#include <string.h>
#include <stdint.h>
void bcopy(const void *src, void *dst, size_t len)
{
memcpy(dst, src, len);
}
branches/xZenu/src/modules/klibc/sprintf.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
* sprintf.c
*/
#include <stdarg.h>
#include <stdio.h>
int sprintf(char *buffer, const char *format, ...)
{
va_list ap;
int rv;
va_start(ap, format);
rv = vsnprintf(buffer, ~(size_t) 0, format, ap);
va_end(ap);
return rv;
}

Archive Download the corresponding diff file

Revision: 1296