Annotation of cci/sys/stand/vdfmt/help.c, revision 1.1

1.1     ! root        1: #include       "vdfmt.h"
        !             2: #include       "cmd.h"
        !             3: 
        !             4: /*
        !             5: **     These routines are used to display all the system help messages
        !             6: ** that the operator requests.  They look through the system command 
        !             7: ** tables to print the commands and the help messages in a neat mannor.
        !             8: **
        !             9: **     The only break in this rule is the help processor for digit entry
        !            10: ** Which informs the operator what numeric range is valid.
        !            11: */
        !            12: 
        !            13: help_text(tbl)
        !            14: cmd_text_element       *tbl;
        !            15: {
        !            16:        indent();
        !            17:        print_common_help();
        !            18:        indent();
        !            19:        while(tbl->cmd_token != 0) {
        !            20:                register int    count;
        !            21: 
        !            22:                count = 9 - strlen(tbl->cmd_text);
        !            23:                print("%s", tbl->cmd_text);
        !            24:                while(count--)
        !            25:                        putchar(' ');
        !            26:                printf("- %s.\n", tbl->cmd_help);
        !            27:                tbl++;
        !            28:        }
        !            29:        exdent(2);
        !            30:        print("\n");
        !            31: }
        !            32: 
        !            33: 
        !            34: /*
        !            35: **
        !            36: */
        !            37: 
        !            38: print_common_help()
        !            39: {
        !            40:        print("The following commands are available:\n");
        !            41:        indent();
        !            42:        print("%s - %s.\n", "KILL    ", "Abort all operations");
        !            43:        print("%s - %s.\n", "STATus  ", "Display formatter state");
        !            44:        exdent(1);
        !            45: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.