MCPcopy Create free account
hub / github.com/MariaDB/server / convert_underscore_to_dash

Function convert_underscore_to_dash

include/my_getopt.h:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136void my_getopt_init_one_value(const struct my_option *, void *, longlong);
137
138static inline void convert_underscore_to_dash(char *str, size_t len)
139{
140 for (char *p= str; p <= str+len; p++)
141 if (*p == '_')
142 *p= '-';
143 else if (*p != '-' && isalnum(*p) == 0)
144 break;
145}
146
147C_MODE_END
148

Callers 3

construct_optionsFunction · 0.85
warn_deprecatedFunction · 0.85
my_print_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected