Changeset 1736 for Whitix/branches
- Timestamp:
- 12/30/08 15:46:29 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/lib/string.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/lib/string.c
r1446 r1736 114 114 SYMBOL_EXPORT(strcat); 115 115 116 char* strncat(char* dest, const char* src, size_t count) 117 { 118 char* tmp = dest; 119 120 if (count) 121 { 122 while (*dest) 123 dest++; 124 125 while ((*dest++ = *src++)) 126 { 127 if (!--count) 128 { 129 *dest = '\0'; 130 break; 131 } 132 } 133 } 134 135 return tmp; 136 } 137 138 SYMBOL_EXPORT(strncat); 139 116 140 char* strchr(char* string,int c) 117 141 {
