Rename cstr_transform() argument
It does not always have to be tolower().
This commit is contained in:
parent
2201becca4
commit
b9457c321f
@ -2953,10 +2953,10 @@ cstr_strip_in_place (char *s, const char *stripped_chars)
|
||||
}
|
||||
|
||||
static void
|
||||
cstr_transform (char *s, int (*tolower) (int c))
|
||||
cstr_transform (char *s, int (*xform) (int c))
|
||||
{
|
||||
for (; *s; s++)
|
||||
*s = tolower (*s);
|
||||
*s = xform (*s);
|
||||
}
|
||||
|
||||
static char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user