Documented x_basename and added const.

This commit is contained in:
Roland Illig 2004-08-16 18:19:37 +00:00
parent 3dcf497216
commit 2c77aa7e1c
2 changed files with 4 additions and 3 deletions

View File

@ -756,9 +756,9 @@ char * _icase_search (char *text, char *data, int *lng)
}
/* The basename routine */
char *x_basename (char *s)
const char *x_basename (const char *s)
{
char *where;
const char *where;
return ((where = strrchr (s, PATH_SEP))) ? where + 1 : s;
}

View File

@ -29,7 +29,8 @@ char *convert_controls (char *s);
void wipe_password (char *passwd);
char *diff_two_paths (char *first, char *second);
char *x_basename (char *s);
/* Returns the basename of fname. The result is a pointer into fname. */
const char *x_basename (const char *fname);
/* Profile managing functions */
int set_int (char *, char *, int);