view toys/pwd.c @ 23:a5e1ebc1d6ee

Redo the index page (flesh it out about halfway), and a couple tweaks to the license page.
author Rob Landley <rob@landley.net>
date Sun, 05 Nov 2006 01:01:34 -0500
parents 6475d6c46066
children fb56ba93afa3
line wrap: on
line source

/* vi: set sw=4 ts=4: */
/*
 * pwd.c - Print working directory.
 */

#include "toys.h"

int pwd_main(void)
{
	char *pwd = xgetcwd();

	puts(pwd);
	if (CFG_TOYS_FREE) free(pwd);

	return 0;
}