17 #include <grass/gis.h>
37 char *
G_basename(
char *filename,
const char *desired_ext)
40 char *dot = strrchr(filename,
'.');
int G_strcasecmp(const char *x, const char *y)
String compare ignoring case (upper or lower)
char * G_basename(char *filename, const char *desired_ext)
Truncates filename to the base part (before the last '.') if it matches the extension, otherwise leaves it unchanged.