Changeset 382 for soft/giet_vm/giet_libs/stdlib.c
- Timestamp:
- Aug 7, 2014, 12:23:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdlib.c
r352 r382 9 9 10 10 /////////////////////////////////////////////////////////////////////////////////// 11 // int atoi ( char * str)11 int atoi(char *str) 12 12 /////////////////////////////////////////////////////////////////////////////////// 13 14 int atoi(char *str)15 13 { 16 14 int res = 0; // Initialize result … … 34 32 35 33 //////////////////////////////////////////////////////////////////////////////////////// 36 // mempcy() 37 // GCC requires this function. Taken from MutekH. 34 void * memcpy(void *_dst, const void * _src, unsigned int size) 38 35 //////////////////////////////////////////////////////////////////////////////////////// 39 void * memcpy(void *_dst, const void * _src, unsigned int size)40 36 { 41 37 unsigned int * dst = _dst; … … 60 56 } 61 57 62 63 58 //////////////////////////////////////////////////////////////////////////////////////// 64 // memset() 65 // GCC requires this function. Taken from MutekH. 59 inline void * memset(void * dst, int s, unsigned int size) 66 60 //////////////////////////////////////////////////////////////////////////////////////// 67 inline void * memset(void * dst, int s, unsigned int count)68 61 { 69 62 char * a = (char *) dst; 70 while ( count--)63 while (size--) 71 64 { 72 65 *a++ = (char)s;
Note: See TracChangeset
for help on using the changeset viewer.