unmorse.c

ds2.10/lib/cmds/creators/unmorse.c · 404 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

#include <daemons.h>
#include <lib.h>

inherit LIB_COMMAND;

int cmd(string str){
    string ret = "";

    if(!str){
        write("See: help morse");
        return 1;
    }

    ret = unmorse(str);

    write("Output: "+ret);
    return 1;
}



string GetHelp(string str) {
    return "Syntax: unmorse <string>\n"
        "Decodes a morse string into its alphanumeric representation.\n"
        "";
}

Site Stats

Snippets: 1791
Codebases: 571