blob: a680d2a7a134dd0517ef03850d679072dd34ca99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "db.h"
int handleMetaCommand(inputBuffer *in){
if(sameStr(in->buffer, ".exit")){
freeInputBuffer(in);
printf("EXIT M'NIGGA\n");
exit(EXIT_SUCCESS);
}else{
return META_COMMAND_FAIL;
}
}
int handleInput(inputBuffer *in){
if(in->buffer[0] == '.'){
return handleMetaCommand(in);
}else{
printf("normal command\n");
}
}
|