diff options
Diffstat (limited to 'hicn-light/src/hicn/config/controlQuit.c')
-rw-r--r-- | hicn-light/src/hicn/config/controlQuit.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/hicn-light/src/hicn/config/controlQuit.c b/hicn-light/src/hicn/config/controlQuit.c index 8c11e48c2..621880d13 100644 --- a/hicn-light/src/hicn/config/controlQuit.c +++ b/hicn-light/src/hicn/config/controlQuit.c @@ -28,9 +28,15 @@ #include <hicn/config/controlQuit.h> static CommandReturn _controlQuit_Execute(CommandParser *parser, - CommandOps *ops, PARCList *args); + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size); static CommandReturn _controlQuit_HelpExecute(CommandParser *parser, - CommandOps *ops, PARCList *args); + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size); static const char *_commandQuit = "quit"; static const char *_commandQuitHelp = "help quit"; @@ -50,13 +56,19 @@ CommandOps *controlQuit_HelpCreate(ControlState *state) { // ============================================== static CommandReturn _controlQuit_HelpExecute(CommandParser *parser, - CommandOps *ops, PARCList *args) { - printf("Exits the interactive control program\n\n"); + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size) { + snprintf(output, output_size, "Exits the interactive control program\n\n"); return CommandReturn_Success; } static CommandReturn _controlQuit_Execute(CommandParser *parser, - CommandOps *ops, PARCList *args) { - printf("exiting interactive shell\n"); + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size) { + snprintf(output, output_size, "exiting interactive shell\n"); return CommandReturn_Exit; } |