Changeset 1079 for Whitix/branches/keobject/lib/string.c
- Timestamp:
- 10/03/08 12:54:00 (3 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/lib/string.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/lib/string.c
r1067 r1079 32 32 33 33 SYMBOL_EXPORT(strncpy); 34 35 int strcpy(char* dest,char* src)36 {37 while ((*dest++=*src++));38 return 0;39 }40 41 SYMBOL_EXPORT(strcpy);42 34 43 35 int strncmp(const char* s1,const char* s2,int num) … … 198 190 199 191 ret = MemAlloc(strlen(name) + 1); 200 str cpy(ret, name);192 strncpy(ret, name, strlen(name)); 201 193 202 194 return ret;