commit f5fe42ab86f7a4b08bffdb37fdd4d7e669065414 Author: Pavol Rusnak Date: Fri Apr 22 01:58:29 2011 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f6fb99 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +brmbar.com diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f6326cd --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +CC=bcc +CFLAGS=-Md + +brmbar.com: brmbar.c + $(CC) $(CFLAGS) brmbar.c -o brmbar.com + +clean: + rm -f brmbar.com + +run: + dosbox brmbar.com diff --git a/brmbar.c b/brmbar.c new file mode 100644 index 0000000..91dc79d --- /dev/null +++ b/brmbar.c @@ -0,0 +1,17 @@ +#include + +int read_items() +{ + char buf[128]; + FILE *f = fopen("items.txt", "r"); + while (fgets(buf, 128, f)) { + printf("%s\n", buf); + } + fclose(f); +} + +int main() +{ + read_items(); + return 0; +} diff --git a/items.txt b/items.txt new file mode 100644 index 0000000..26a35f9 --- /dev/null +++ b/items.txt @@ -0,0 +1,2 @@ +4029764001807 Club Mate 0.5L 35 +4029764001821 Club Mate 0.33L 25