MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmt_strrepc

Function gmt_strrepc

src/gmt_common_string.c:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void gmt_strrepc (char *string, int c, int r) {
163 /* Replaces all occurrences of c in the string with r */
164 assert (string != NULL); /* NULL pointer */
165 do {
166 if (*string == c)
167 *string = (char)r;
168 } while (*(++string)); /* repeat until \0 reached */
169}
170
171size_t gmt_strlcmp (char *str1, char *str2) {
172 /* Compares str1 with str2 but only until str1 reaches the

Callers 15

gmt_filename_setFunction · 0.85
gmt_filename_getFunction · 0.85
gmt_rectangle_dimensionFunction · 0.85
batch_set_product_prefixFunction · 0.85
GMT_batchFunction · 0.85
GMT_movieFunction · 0.85
gmtapi_wrap_the_lineFunction · 0.85
parseFunction · 0.85
gmtdcw_load_listsFunction · 0.85
gmtinit_set_envFunction · 0.85
gmt_handle5_plussignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected