-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcrud.h
49 lines (41 loc) · 915 Bytes
/
crud.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef CRUD_H_INCLUDED
#define CRUD_H_INCLUDED
// C STANDARD LIBRARY
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
// GLOBAL VARIABLE
typedef struct book{
char name[100];
char author[100];
int year;
char category[100];
char created[100];
char modified[100];
struct book *next;
} book;
book *b, *head;
int totalBook;
time_t rawtime;
struct tm *timeInfo;
// SFML
#include <SFML/Graphics.h>
#include <SFML/Window.h>
// LOCAL HEADER
#include "create.h"
#include "edit.h"
#include "delete.h"
#include "view.h"
#include "windows.h"
#include "about.h"
// FUNCTIONS
void clearScreen();
void pauseScreen();
char *timeToStr(struct tm *timeInfo);
char *yearToStr(int year);
char *numToStr(int num);
void resetString(char *str, int len);
void getDataFromFile();
#endif // CRUD_H_INCLUDED