Skip to content
Snippets Groups Projects
user avatar
rswindell authored
So replace some strstr() calls with either (new local function) strStartWith_i()
or strcasestr(), depending.
strStartWith_i() return length of the matched word, so no need to sprinkle
about magic numeric constants everywhere. The extra calls to strlen() are worth
the code clarity / reliability, methinks.
TODO: find out if there's a way to calculate the length of string-constants at
compile-time (?).
7c0dbbb4
History
Name Last commit Last update
3rdp
CVSROOT
ctrl
docs
exec
install
node1
node2
node3
node4
src
text
web
xtrn