view toys/pwd.c @ 41:a43bdc6f53af

Add bloat-o-meter, make bloatcheck, and scripts/showasm.
author Rob Landley <rob@landley.net>
date Sun, 26 Nov 2006 18:47:14 -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;
}