-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
47 lines (31 loc) · 863 Bytes
/
utils.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
#ifndef UTILS_H
#define UTILS_H
#include <string.h>
#include <enums.h>
#include <iostream>
#include <structures.h>
#include <math.h>
#include <handler_disk.h>
#include <handler_partitions.h>
#include <scanner.h>
#include <parser.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <dirent.h>
using namespace std;
void clearArray(char [],int);
string getNamePath(char *path,int *poss);
string getPathWithoutName(char *path,int sizeName);
void getFullPathDisk(char [],char[],char[]);
void getFullPath(char [],char[],char[]);
long getSize(int,Unit);
void showMessageError(Response);
void fillSpaceWithZeros(char[],int,int);
float getDecimal(float);
const char* showOption(Options);
int getInt(string);
Response getContadorDiscos(int *contadorDiscos,char *id);
void createPath(string path);
#endif // UTILS_H