| 101 | } |
| 102 | |
| 103 | char *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 | |
| 113 | void gmt_strstrip(char *string, bool strip_leading) { |
| 114 | /* Strip leading and trailing whitespace from string */ |
no outgoing calls
no test coverage detected