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
62
void
displayWelcomeMessage(
void
);
63
71
void
displayUserMenu(
void
);
72
80
void
displayAdminMenu(
void
);
81
90
void
clearInputBuffer(
void
);
91
107
bool
checkUsername(
const
char
* str);
108
109
123
bool
containsPipe(
const
char
* str);
124
137
void
getPassword(
char
* password,
size_t
size);
138
148
bool
isLeapYear(
int
year);
149
166
bool
isValidDate(
const
char
* date);
167
181
void
formatDate(
char
* date);
182
183
#endif
include
misc.h
Generated by
1.13.2