_load.c

foundationI_fluffos_v1/lib/secure/cmds/ambassador/_load.c · 770 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*
// This file is part of the TMI distribution mudlib.
// Please include this header if you use this code.
// Written by Sulam(12-19-91)
// Help added by Brian (1/28/92)
*/

#include <std.h>
inherit DAEMON;

int help();

int
cmd_load(string str) {
    mixed res;

    if(!str) {
      return help();
    }
    str = absolute_path((string)this_player()->get_path(), str);
    write( (res=catch(call_other(str,"???")))?str+": "+res+"\n":"Ok.\n");
    return 1;
}

int
help() {
  write("Command: load\nSyntax: load <filename>\n"+
        "This command attempts to load a file from disk.\n"+
        "Any errors in the file will prevent it from \n"+
        "loading properly.  You may also specify a path\n"+
        "along with the filename.\n");
  return 1;
}
/* EOF */

Site Stats

Snippets: 1791
Codebases: 571