Working SDHOST/FatFS, boot partition mounts, some other minor fixes too.
[rpi-open-firmware.git] / lib / memcpy.c
1
2
3 void *__memcpy(void *_dst, const void *_src, unsigned len)
4 {
5 unsigned char *dst = _dst;
6 const unsigned char *src = _src;
7 while(len-- > 0) {
8 *dst++ = *src++;
9 }
10 return _dst;
11 }
12
13 void *
14 memset(void *s, int c, unsigned int n)
15 {
16 char *s1 = s;
17 if (n>0) {
18 n++;
19 while (--n > 0) {
20 *s1++ = c;
21 }
22 }
23 return s;
24 }
This page took 0.066804 seconds and 4 git commands to generate.