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

Function gmt_get_ext

src/gmt_common_string.c:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103char *gmt_get_ext (const char *string) {
104 /* Returns a pointer to the filename extension (e.g., .ps) or NULL if not found. */
105 char *p;
106 assert (string != NULL); /* NULL pointer */
107 if ((p = strrchr(string, '.'))) {
108 return (p + 1);
109 }
110 return NULL;
111}
112
113void gmt_strstrip(char *string, bool strip_leading) {
114 /* Strip leading and trailing whitespace from string */

Callers 11

add_defaultsFunction · 0.85
GMT_docsFunction · 0.85
gmtlib_is_esri_gridFunction · 0.85
GMT_grdgdalFunction · 0.85
gmt_grd_get_formatFunction · 0.85
gmtapi_import_ppm_headerFunction · 0.85
gmtapi_export_ppmFunction · 0.85
parseFunction · 0.85
GMT_grdimageFunction · 0.85
gmt_fopenFunction · 0.85
gmt_export_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected