Changeset 1433ecda in mainline for uspace/lib/posix/src/string.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/string.c
r47b2d7e3 r1433ecda 198 198 assert(src != NULL); 199 199 200 unsigned char *bdest = dest;201 const unsigned char *bsrc = src;200 unsigned char *bdest = dest; 201 const unsigned char *bsrc = src; 202 202 203 203 for (size_t i = 0; i < n; ++i) { … … 458 458 j = prefix_table[j]; 459 459 } 460 i++; j++; 460 i++; 461 j++; 461 462 prefix_table[i] = j; 462 463 } … … 518 519 519 520 /* Skip over leading delimiters. */ 520 while (*s && (strchr(delim, *s) != NULL)) ++s; 521 while (*s && (strchr(delim, *s) != NULL)) 522 ++s; 521 523 start = s; 522 524 523 525 /* Skip over token characters. */ 524 while (*s && (strchr(delim, *s) == NULL)) ++s; 526 while (*s && (strchr(delim, *s) == NULL)) 527 ++s; 525 528 end = s; 526 529 *next = (*s ? s + 1 : s);
Note:
See TracChangeset
for help on using the changeset viewer.