Changeset 732bb0c in mainline for uspace/lib/libc/generic
- Timestamp:
- 2009-04-14T19:08:10Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4482bc7
- Parents:
- 47a6708
- Location:
- uspace/lib/libc/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/getopt.c
r47a6708 r732bb0c 387 387 for (i = 0; long_options[i].name; i++) { 388 388 /* find matching long option */ 389 if (str ncmp(current_argv, long_options[i].name,390 current_argv_len))389 if (str_lcmp(current_argv, long_options[i].name, 390 str_nlength(current_argv, current_argv_len))) 391 391 continue; 392 392 -
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.
