blob: f26a0cb4985b68a16cf32d97bb8754a70703eebc (
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");
}
}
|