#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Pool.h"
#include "Product.h"
Go to the source code of this file.
◆ MenuOption
| Enumerator |
|---|
| MENU_INVALID | |
| MENU_MANAGE_STOCK | |
| MENU_GENERATE_REPORT | |
| MENU_QUIT | |
Definition at line 11 of file main.c.
◆ convert_to_sint()
| static int convert_to_sint |
( |
const char *const |
buffer, |
|
|
bool * |
error |
|
) |
| |
|
static |
◆ convert_to_uint()
| static unsigned int convert_to_uint |
( |
const char *const |
buffer, |
|
|
bool * |
error |
|
) |
| |
|
static |
◆ generate_reports()
| static void generate_reports |
( |
const struct Pool *const |
pool | ) |
|
|
static |
◆ get_input_line()
| static size_t get_input_line |
( |
char *const |
buffer, |
|
|
const size_t |
buffer_size, |
|
|
FILE *const |
stream |
|
) |
| |
|
static |
◆ get_menu_selection()
◆ load_inventory()
| static int load_inventory |
( |
FILE *const |
stock_file, |
|
|
struct Pool *const |
pool |
|
) |
| |
|
static |
◆ main()
| int main |
( |
const int |
argc, |
|
|
const char **const |
argv |
|
) |
| |
◆ manage_stock()
| static void manage_stock |
( |
const struct Pool *const |
pool | ) |
|
|
static |
◆ open_stock_file()
| static FILE * open_stock_file |
( |
const char *const |
filename | ) |
|
|
static |
◆ save_inventory()
| static void save_inventory |
( |
FILE *const |
datafile, |
|
|
const struct Pool *const |
pool |
|
) |
| |
|
static |