Changeset 5832e9b in mainline
- Timestamp:
- 2007-12-13T00:04:16Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc76be3
- Parents:
- 9119d25
- Location:
- uspace/lib/libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/string.c
r9119d25 r5832e9b 145 145 } 146 146 147 int strncmp(const char *a, const char *b, size_t n) 148 { 149 size_t c = 0; 150 151 while (c < n && a[c] && b[c] && (!(a[c] - b[c]))) 152 c++; 153 154 return ( c < n ? a[c] - b[c] : 0); 155 156 } 147 157 148 158 /** Return pointer to the first occurence of character c in string -
uspace/lib/libc/include/string.h
r9119d25 r5832e9b 47 47 48 48 int strcmp(const char *, const char *); 49 int strncmp(const char *, const char *, size_t n); 49 50 50 51 char *strcpy(char *dest, const char *src);
Note:
See TracChangeset
for help on using the changeset viewer.