Changeset c9857c6 in mainline for libc/generic/string.c
- Timestamp:
- 2006-04-12T10:21:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f30e6a0b
- Parents:
- fcd10af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/string.c
rfcd10af rc9857c6 27 27 */ 28 28 29 #include <types.h>30 29 #include <string.h> 31 30 … … 48 47 return dest; 49 48 } 49 50 size_t strlen(const char *str) 51 { 52 int counter = 0; 53 54 while (str[counter] != 0) { 55 counter++; 56 } 57 58 return counter; 59 }
Note:
See TracChangeset
for help on using the changeset viewer.