*
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
*
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
char* FAST_FUNC skip_whitespace(const char *s)
return (char *) s;
}
+
+char* FAST_FUNC skip_dev_pfx(const char *tty_name)
+{
+ char *unprefixed = is_prefixed_with(tty_name, "/dev/");
+ return unprefixed ? unprefixed : (char*)tty_name;
+}