Merge branch 'master' of github.com:brmlab/brmbar

This commit is contained in:
Pavol Rusnak 2011-04-22 02:26:58 +02:00
commit 521af62b24
3 changed files with 16 additions and 5 deletions

View file

@ -1,10 +1,11 @@
#include <stdio.h>
#include "defines.h"
struct item {
char *ean;
char *name;
char ean[EAN_MAXLEN];
char name[NAME_MAXLEN];
int price;
} items[100];
} items[ITEM_MAXNUM];
int items_count;
@ -14,7 +15,7 @@ void fill_items()
FILE *f = fopen("items.txt", "r");
while (fgets(buf, 128, f)) {
printf("%s\n", buf);
}
}
fclose(f);
}
@ -48,3 +49,4 @@ int main()
}
return 0;
}