Ristrutturato in più file

This commit is contained in:
admin committed 2025-10-31 14:34:27 +01:00
1 parent 499b3787c6
commit 5508532619
19 files changed
+280 -103

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#ifndef GLOBALS_H
#define GLOBALS_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
extern char productPricesFileLocation[64]; // Dichiarazione extern
#endif
+15
View File
@@ -0,0 +1,15 @@
#ifndef LOGIC_H
#define LOGIC_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
// TODO: QUI CI VA LA STRUCT DATI
int getCount();
void changeFile();
int exists(const char *fname);
#endif
+20
View File
@@ -0,0 +1,20 @@
#ifndef WINDOWS_H
#define WINDOWS_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
int runMainMenu();
void runOptionsMenu();
void warningf(const char *fmt, ...);
void warning(char *string);
void statusf(const char *fmt, ...);
void status(char *msg);
WINDOW *create_newwin(int height, int width, int starty, int startx);
void destroy_win(WINDOW *local_win);
void print_menu(WINDOW *menu_win, int y, int x, int highlight);
void word_wrap_print(WINDOW *win, int start_y, int start_x, int max_width, const char *str);
#endif