mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add support for patterns on %include #25140
Also adds generic tor_glob function to expand globs.
This commit is contained in:
@@ -143,6 +143,15 @@ tor_strupper(char *s)
|
||||
}
|
||||
}
|
||||
|
||||
/** Replaces <b>old</b> with <b>replacement</b> in <b>s</b> */
|
||||
void
|
||||
tor_strreplacechar(char *s, char find, char replacement)
|
||||
{
|
||||
for (s = strchr(s, find); s; s = strchr(s + 1, find)) {
|
||||
*s = replacement;
|
||||
}
|
||||
}
|
||||
|
||||
/** Return 1 if every character in <b>s</b> is printable, else return 0.
|
||||
*/
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user