summaryrefslogtreecommitdiff
path: root/misc-utils/procs.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:34 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:34 +0100
commitfd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch)
tree997c0ca2abc018369babd7da59bcd0afe492068e /misc-utils/procs.c
parent726f69e29ca9d4842f3acb20fffd2466fda62c09 (diff)
downloadutil-linux-old-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.gz
Imported from util-linux-2.7.1 tarball.
Diffstat (limited to 'misc-utils/procs.c')
-rw-r--r--misc-utils/procs.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/misc-utils/procs.c b/misc-utils/procs.c
index 4d0ea7ac..2ea3e098 100644
--- a/misc-utils/procs.c
+++ b/misc-utils/procs.c
@@ -6,9 +6,9 @@
* modify it under the terms of the gnu general public license.
* there is no warranty.
*
- * $Author: faith $
- * $Revision: 1.2 $
- * $Date: 1995/03/12 02:55:24 $
+ * $Author: janl $
+ * $Revision: 1.5 $
+ * $Date: 1996/11/11 22:40:03 $
*
*/
@@ -111,3 +111,12 @@ static char *parse_parens (char *buf)
}
return cp;
}
+
+
+char *mybasename (char *path)
+{
+ char *cp;
+
+ cp = strrchr (path, '/');
+ return (cp ? cp + 1 : path);
+}