Commit 48f9fef
committed
prefer mem* funcs instead of str*
wrappers expect length, thus no need to look for '\0'
only missing piece is case-insensitive memcmp (memicmp?)
since implementation requires it, manually do the tolower() loop
update replace() w/o '\0' assumptions, always use mem ranges
drop strstr usage and reuse loop blocks
also returns actual len diff after comparison is otherwise equal1 parent 6a22369 commit 48f9fef
3 files changed
Lines changed: 192 additions & 128 deletions
0 commit comments