_popd.c

nightmare3_fluffos_v2/lib/cmds/creator/_popd.c · 407 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <std.h>

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

#include <std.h>

inherit DAEMON;

int
cmd_popd(string str) {
	object pobj;

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

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

Site Stats

Snippets: 1791
Codebases: 571