This commit is contained in:
Pavol Rusnak 2011-04-22 01:58:29 +02:00
commit f5fe42ab86
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
brmbar.com

11
Makefile Normal file
View file

@ -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

17
brmbar.c Normal file
View file

@ -0,0 +1,17 @@
#include <stdio.h>
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;
}

2
items.txt Normal file
View file

@ -0,0 +1,2 @@
4029764001807 Club Mate 0.5L 35
4029764001821 Club Mate 0.33L 25