mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
Separated I/O operations into itemio.c
Signed-off-by: Cestmir Houska <czestmyr@gmail.com>
This commit is contained in:
parent
842a6eb13f
commit
bf838ea046
4 changed files with 43 additions and 19 deletions
17
itemio.h
Normal file
17
itemio.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef _BRMBAR_ITEMIO_H_
|
||||
#define _BRMBAR_ITEMIO_H_
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
struct item {
|
||||
char ean[EAN_MAXLEN];
|
||||
char name[NAME_MAXLEN];
|
||||
int price;
|
||||
};
|
||||
|
||||
extern struct item items[ITEM_MAXNUM];
|
||||
|
||||
extern void fill_items();
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue