summaryrefslogtreecommitdiff
path: root/src/i_timer.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-29 20:08:31 -0400
committerSimon Howard2014-03-29 20:08:31 -0400
commit62b5c602821cee8ac703ebe6362f3e1fc6d9ad3c (patch)
tree3703b069d3d200e8c6edac3c99de00da34cbc7f3 /src/i_timer.c
parente85edb9e6fcdc77d69d1b4d9f14f705a03e753e1 (diff)
downloadchocolate-doom-62b5c602821cee8ac703ebe6362f3e1fc6d9ad3c.tar.gz
chocolate-doom-62b5c602821cee8ac703ebe6362f3e1fc6d9ad3c.tar.bz2
chocolate-doom-62b5c602821cee8ac703ebe6362f3e1fc6d9ad3c.zip
misc: Add string utility functions.
It's more readable to write "M_StringEndsWith(..." than doing a bunch of pointer arithmetic, and this is a common pattern. Also add M_StringStartsWith, M_StringJoin and M_StringCopy. The latter is a safe alternative for strcpy() that works the same as OpenBSD's strlcpy(). Use these functions in a few places where it makes sense.
Diffstat (limited to 'src/i_timer.c')
0 files changed, 0 insertions, 0 deletions