Group_B_VirtualEscapeRoom
Functions
parsenexec.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "parsenexec.h"
#include "puzzle.h"
#include "execution.h"

Functions

bool parse_and_execute (char *input)
 parses and executes the user input More...
 

Function Documentation

◆ parse_and_execute()

bool parse_and_execute ( char *  input)

parses and executes the user input

This function parses the user input and separates the command and argument part of the input using the space delimiter. Also, calls other execution functions to execute the user command

Parameters
[in]inputthe input captured from the user
Returns
1 in case of any input, 0 if user enters the command "quit"