1
0
Files
irix-657m-src/irix/cmd/icrash/cmds/cmd_pd.c
2022-09-29 17:59:04 +03:00

49 lines
943 B
C

#ident "$Header: /proj/irix6.5.7m/isms/irix/cmd/icrash/cmds/RCS/cmd_pd.c,v 1.7 1999/05/25 19:21:38 tjm Exp $"
#include <stdio.h>
#include <sys/types.h>
#include <klib/klib.h>
#include "icrash.h"
/*
* printd_cmd() -- Run 'pd' in the print routine.
*/
int
printd_cmd(command_t cmd)
{
cmd.flags |= C_DECIMAL;
print_cmd(cmd);
return(0);
}
#define _PRINTD_USAGE "[-w outfile] expression"
/*
* printd_usage() -- Print the usage string for the 'printd' command.
*/
void
printd_usage(command_t cmd)
{
CMD_USAGE(cmd, _PRINTD_USAGE);
}
/*
* printd_help() -- Print the help information for the 'printd' command.
*/
void
printd_help(command_t cmd)
{
CMD_HELP(cmd, _PRINTD_USAGE,
"The printd command is the same as the print command except that "
"all integers are printed as decimal values.");
}
/*
* printd_parse() -- Parse the command line arguments for 'printd'.
*/
int
printd_parse(command_t cmd)
{
return (C_TRUE|C_WRITE);
}