Changeset 732bb0c in mainline for uspace/lib/libc/generic/string.c
- Timestamp:
- 2009-04-14T19:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4482bc7
- Parents:
- 47a6708
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/string.c
r47a6708 r732bb0c 662 662 } 663 663 664 int strncmp(const char *a, const char *b, size_t n)665 {666 size_t c = 0;667 668 while (c < n && a[c] && b[c] && (!(a[c] - b[c])))669 c++;670 671 return ( c < n ? a[c] - b[c] : 0);672 673 }674 675 664 int stricmp(const char *a, const char *b) 676 665 {
Note:
See TracChangeset
for help on using the changeset viewer.