diff options
author | Keith Kanios <keith@kanios.net> | 2011-04-08 00:23:21 -0500 |
---|---|---|
committer | Keith Kanios <keith@kanios.net> | 2011-04-08 00:23:21 -0500 |
commit | dd9c9752ead3a39fec6f050bfe3ac8768defc02f (patch) | |
tree | 2cf6d30ba7ed0fc0b194145cd2e1809142c0669c /nasmlib.h | |
parent | a4f98b3aabcd202d9aedb72f86c4f40fd0102871 (diff) | |
download | nasm-dd9c9752ead3a39fec6f050bfe3ac8768defc02f.tar.gz nasm-dd9c9752ead3a39fec6f050bfe3ac8768defc02f.tar.bz2 nasm-dd9c9752ead3a39fec6f050bfe3ac8768defc02f.zip |
nasmlib: added string replace (strrep) utility function
Diffstat (limited to 'nasmlib.h')
-rw-r--r-- | nasmlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -205,6 +205,11 @@ int nasm_memicmp(const char *, const char *, size_t); char *nasm_strsep(char **stringp, const char *delim); #endif +/* + * Replace all instances of `str` with `sub` in `lin` + */ +char *nasm_strrep(const char *str, const char *sub, char *lin, bool casesense); + /* * Convert a string into a number, using NASM number rules. Sets |