|
Zappy - Year end project 2
This is a project that Epitech asked us to create in order to allow us to reveiw the notions of the current year.
|
#include <stdlib.h>#include <string.h>#include <unistd.h>#include "utils.h"#include "command_parse.h"
Go to the source code of this file.
Functions | |
| int | check_command_exist (char **command) |
| Verify if command exist and if it is valid. | |
| char ** | parse_command (char *str) |
| Parse a command using COMMAND_DELIMITER as delimiter. | |
| char *** | parse_buffer (uint8_t *buffer, ssize_t buf_size) |
| Get all command in buffer (a command is delimited by COMMAND_SEPARATOR) | |
| int check_command_exist | ( | char ** | command | ) |
Verify if command exist and if it is valid.
| command | array to verify |
Definition at line 35 of file command_parse.c.
| char *** parse_buffer | ( | uint8_t * | buffer, |
| ssize_t | buf_size ) |
Get all command in buffer (a command is delimited by COMMAND_SEPARATOR)
| buffer | Read buffer from server |
| buf_size | Size of buffer |
Definition at line 97 of file command_parse.c.
| char ** parse_command | ( | char * | str | ) |
Parse a command using COMMAND_DELIMITER as delimiter.
| str | Command string to parse |
Definition at line 48 of file command_parse.c.