aboutsummaryrefslogtreecommitdiff
path: root/toys/dirname.c
blob: 454a5d67ccc7191dfe665de6d71bd17d466bd142 (plain)
1
2
3
4
5
6
7
8
#include "toys.h"
#include <libgen.h>

int dirname_main(void)
{
	puts(dirname(toys.optargs[0]));
	return 0;
}