rem: int had_slash = *base_lim;
add: bool had_slash = (*base_lim != '\0');
context: strip_trailing_slashes (char *path){  char *base = base_name (path);  char *base_lim = base + base_len (base);  int had_slash = *base_lim;  *base_lim = '\0';  return had_slash;}