summaryrefslogtreecommitdiffhomepage
path: root/libbb/single_argv.c
blob: 85137b40fe625556d6d1276941f36040e0906246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* vi: set sw=4 ts=4: */
/*
 * Utility routines.
 *
 * Copyright (C) 2009 Denys Vlasenko
 *
 * Licensed under GPLv2, see file LICENSE in this source tree.
 */
#include "libbb.h"

char* FAST_FUNC single_argv(char **argv)
{
	if (!argv[1] || argv[2])
		bb_show_usage();
	return argv[1];
}