aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/main.c b/src/main.c
index 636d0b4..ddf12ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,26 +5,16 @@ int main(){
inputBuffer *in = newInputBuffer();
-
- row r = {"C:/xd", "", 0, 0};
- printf("%s %d %d\n", r.tags, r.numTags, r.lenTags);7
- insertTag(&r, "caca");
- insertTag(&r, "mierda");
- insertTag(&r, "caca ");
- insertTag(&r, "tu");
- printf("%s %d %d\n", r.tags, r.numTags, r.lenTags);
-
- printf("%d\n", strInTags(r.tags, r.lenTags, ";perro", 6, ';'));
-
- row *r2 = newRow("asa");
+ row *r = newRow("~/test/img.png");
while(1){
prompt();
getInput(in);
- insertTag(r2, in->buffer);
- printf("Tags of row '%s': %s\n", r2->path, r2->tags);
+ 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:
@@ -35,4 +25,4 @@ int main(){
break;
}*/
}
-} \ No newline at end of file
+}