CrimsonCare
CrimsonCare is a C project designed to provide a robust solution for blood management.
 
Loading...
Searching...
No Matches
misc.h
Go to the documentation of this file.
1
31#ifndef MISC_H
32#define MISC_H
33
34#include <stdio.h>
35#include <stdint.h>
36#include <string.h>
37#include <stdlib.h>
38#include <ctype.h>
39#include <stdbool.h>
40#include <errno.h>
41
42#ifdef _WIN32
43#include <conio.h>
44#else
45#include <termios.h>
46#include <unistd.h>
47#endif
48
62void displayWelcomeMessage(void);
63
71void displayUserMenu(void);
72
80void displayAdminMenu(void);
81
90void clearInputBuffer(void);
91
107bool checkUsername(const char* str);
108
109
123bool containsPipe(const char* str);
124
137void getPassword(char* password, size_t size);
138
148bool isLeapYear(int year);
149
166bool isValidDate(const char* date);
167
181void formatDate(char* date);
182
183#endif