-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
52 lines (45 loc) · 881 Bytes
/
common.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
50
51
52
#ifndef COMMON_H
#define COMMON_H
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <ctype.h>
#include <math.h>
#include <locale.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#endif
#define NUM_FUNCOES 22
#define NUM_FUNCOES_COMEM_STRING 6
#define cap_local 1024
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
bool check_vec(char x, char *lista, int num_funcoes);
typedef struct LINHA
{
int tamanho;
struct CELULA *head;
struct CELULA *tail;
struct LINHA *up;
struct LINHA *down;
} linha;
typedef struct CELULA
{
char val;
struct CELULA *next;
struct CELULA *prev;
} celula;
typedef struct CONSOLE
{
char *letras;
int tamanho;
} console;
typedef struct PONTO
{
int linha;
int coluna;
struct CELULA *cel;
} ponto;
int power(int base, int exp);
#endif