mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 21:33:59 +02:00
init
This commit is contained in:
commit
f5fe42ab86
4 changed files with 31 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
brmbar.com
|
11
Makefile
Normal file
11
Makefile
Normal 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
17
brmbar.c
Normal 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
2
items.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
4029764001807 Club Mate 0.5L 35
|
||||
4029764001821 Club Mate 0.33L 25
|
Loading…
Add table
Add a link
Reference in a new issue