112 char *
envvar =
"GRASS_BASENAME_SEPARATOR";
136 length =
lensep * (len - 1) + 1;
137 for (i = 0; i < len; i++) {
144 for (i = 1; i < len; i++) {
size_t G_get_num_decimals(const char *str)
Get number of decimals from a string.
char * G_generate_basename(const char *basename, double number, size_t ndigits, size_t ndecimals)
Generate the format string.
char * G_get_basename_separator(void)
Return the environmental basename variable or the default value.
char * G_double_to_basename_format(double number, size_t ndigits, size_t ndecimals)
Convert a double to a string substituting the dot with underscore 12.3456 => '12_3456'.
char * G_join_basename_strings(const char **strings, size_t len)
join an array of strings using the basename separator
char * G_basename(char *filename, const char *desired_ext)
Truncates filename to the base part (before the last '.') if it matches the extension,...
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)