Make the replace functions return the number of found matchesmain
commit121fe3e9947cd9bf3952f360670d79b9b3f45818
authorSaúl Valdelvira <saul@saulv.es>
Sun, 24 Dec 2023 23:08:11 +0000 (25 00:08 +0100)
committerSaúl Valdelvira <saul@saulv.es>
Sun, 24 Dec 2023 23:19:58 +0000 (25 00:19 +0100)
tree0800158f02c82efced40b696f07beabd074f1494
parentd9e1d5db0cf2b97d3697ced6fc44958c7fe01d13
Make the replace functions return the number of found matches

Instead of returning 1 on success, count the number of replacements
performed and return that. It could be useful.
str.c
str.h
wstr.c
wstr.h