Files
ngspice/src/frontend/testcommands.c
T
rlar 7454a6d486 src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...

checked for object file invariance on linux
2012-09-20 20:30:53 +02:00

27 lines
394 B
C

#include <stdio.h>
#include "commands.h"
void
print_struct_comm(struct comm coms[])
{
int i;
for (i = 0; coms[i].co_comname != NULL; i++) {
printf("Command: %s\n"
"help: %s\n\n",
coms[i].co_comname,
coms[i].co_help);
}
}
int
main(void)
{
print_struct_comm(nutcp_coms);
print_struct_comm(spcp_coms);
return 0;
}