view toys/dirname.c @ 243:6d13d06ec0ac

Might as well make the dependencies slightly more paranoid. (The only reason to have dependencies at all is so "make install" doesn't trigger a rebuild. A rebuild is always a build all anyway.)
author Rob Landley <>
date Tue, 22 Jan 2008 19:20:06 -0600
parents 163498bf547b
children 5e8ca70863aa
line wrap: on
line source

/* vi: set sw=4 ts=4:
 * dirname.c - print directory portion of path, or "." if none.
 * Copyright 2007 Charlie Shephard <>
 * See


config DIRNAME
	bool "dirname"
	default y
	  usage: dirname path

	  Print the part of path up to the last slash.

#include "toys.h"
#include <libgen.h>

void dirname_main(void)