mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Documented x_basename and added const.
This commit is contained in:
parent
3dcf497216
commit
2c77aa7e1c
@ -756,9 +756,9 @@ char * _icase_search (char *text, char *data, int *lng)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The basename routine */
|
/* 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;
|
return ((where = strrchr (s, PATH_SEP))) ? where + 1 : s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ char *convert_controls (char *s);
|
|||||||
void wipe_password (char *passwd);
|
void wipe_password (char *passwd);
|
||||||
char *diff_two_paths (char *first, char *second);
|
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 */
|
/* Profile managing functions */
|
||||||
int set_int (char *, char *, int);
|
int set_int (char *, char *, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user