ed.c

merentha_fluffos_v2/lib/cmds/admin/ed.c · 463 B

From the archive merentha_fluffos_v2.zip

Download the archive   « Back to the archive contents

// Petrarch
// Merentha Lib 1.0
// <ed>

varargs int command(string file) {
    if(!file) return notify_fail("Syntax: ed <filename>\n");
    if(file_size(file)==-2) return notify_fail("You can not 'ed'it a directory.\n");
    if(file[0..0]!="/") file=this_player()->query_cwd()+file;
    ed(file);
    return 1;
}

string help() {
return "Syntax: ed <filename>\n\nBegins addition of the file given by filename.  Will create the file if it does not yet exist.";
}

Site Stats

Snippets: 1791
Codebases: 571