mirror of
https://github.com/troglobit/finit.git
synced 2026-11-25 20:28:23 +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;
|
return prognm;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* basename(3) replacement that does not modify its argument */
|
||||||
* basenm - Our custom basename implementation
|
char *basenm(const char *path)
|
||||||
* @path: The path to parse
|
{
|
||||||
*
|
|
||||||
* Returns either the parsed basename, or
|
|
||||||
* a copy of the given path
|
|
||||||
*/
|
|
||||||
char *basenm(const char *path) {
|
|
||||||
char *basename;
|
char *basename;
|
||||||
|
|
||||||
basename = rindex(path, '/');
|
basename = rindex(path, '/');
|
||||||
|
|||||||
Reference in new issue
Block a user