aboutsummaryrefslogtreecommitdiff
path: root/libbb/single_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/single_argv.c')
-rw-r--r--libbb/single_argv.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libbb/single_argv.c b/libbb/single_argv.c
new file mode 100644
index 000000000..6173c884e
--- /dev/null
+++ b/libbb/single_argv.c
@@ -0,0 +1,16 @@
1/* vi: set sw=4 ts=4: */
2/*
3 * Utility routines.
4 *
5 * Copyright (C) 2009 Denys Vlasenko
6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */
9#include "libbb.h"
10
11char* FAST_FUNC single_argv(char **argv)
12{
13 if (!argv[1] || argv[2])
14 bb_show_usage();
15 return argv[1];
16}