summaryrefslogtreecommitdiff
path: root/nasmlib.h
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2011-04-08 00:23:21 -0500
committerKeith Kanios <keith@kanios.net>2011-04-08 00:23:21 -0500
commitdd9c9752ead3a39fec6f050bfe3ac8768defc02f (patch)
tree2cf6d30ba7ed0fc0b194145cd2e1809142c0669c /nasmlib.h
parenta4f98b3aabcd202d9aedb72f86c4f40fd0102871 (diff)
downloadnasm-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nasmlib.h b/nasmlib.h
index 2c335e1..12f9ca1 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -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