_popd.c

tmi2_fluffos_v2/lib/cmds/file/_popd.c · 405 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

/*
// file: _popd.c
// author: Truilkan@TMI
// last modified: 1992/03/08
*/

#include <config.h>
#include <mudlib.h>

inherit DAEMON ;

int
cmd_popd(string str) {
	object pobj;

	if (!(pobj = previous_object()))
		return 0;
	
	return (int)pobj->popd(str);
}

string
help() {
  return("Command: popd\nSyntax: popd\n"+
	"Changes the current directory to be the one last switched to\n" +
	"via pushd.\n");
}

Site Stats

Snippets: 1791
Codebases: 571