mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
init
This commit is contained in:
commit
f5fe42ab86
4 changed files with 31 additions and 0 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue