blob: ddf12ef161908c607d2e1b50376f33dd6d049c22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "db.h"
int main(){
inputBuffer *in = newInputBuffer();
row *r = newRow("~/test/img.png");
while(1){
prompt();
getInput(in);
insertTag(r, in->buffer);
printf("Tags of row '%s': %s\n", r->path, r->tags);
printf("Number of tags: %u. Length of tags: %u\n", r->numTags, r->lenTags);
/*switch(handleInput(in)){
case META_COMMAND_SUCCESS:
printf("we done it nigger\n");
break;
case META_COMMAND_FAIL:
printf("uh-oh nigga i dunno what '%s' is!\n", in->buffer);
break;
}*/
}
}
|