basic functions to make
This commit is contained in:
parent
1a34e2f64b
commit
a0ad80a375
52 changed files with 2964 additions and 3 deletions
31
src/main.c
Normal file
31
src/main.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/23 14:33:45 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/23 14:55:04 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "include.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
t_command command;
|
||||
int errorstatus;
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
errorstatus = 0;
|
||||
while (true)
|
||||
{
|
||||
command = parse_command(ask_command());
|
||||
if (command.error)
|
||||
continue ;
|
||||
errorstatus = execute_command(command);
|
||||
}
|
||||
return (errorstatus);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue