Simplified function comment and follow coding style

This commit is contained in:
Stargirl-chan committed 2023-12-29 13:37:08 +01:00
1 parent 42cd8d284b
commit cbea83b369
1 file changed
+3 -8
+3 -8
View File
@@ -151,14 +151,9 @@ char *progname(char *arg0)
return prognm;
}
/**
* basenm - Our custom basename implementation
* @path: The path to parse
*
* Returns either the parsed basename, or
* a copy of the given path
*/
char *basenm(const char *path) {
/* basename(3) replacement that does not modify its argument */
char *basenm(const char *path)
{
char *basename;
basename = rindex(path, '/');