mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Simplified function comment and follow coding style
This commit is contained in:
1 parent
42cd8d284b
commit
cbea83b369
1 file changed
+3
-8
+3
-8
@@ -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, '/');
|
||||
|
||||
Reference in new issue
Block a user