https://github.com/joaorafa19/gestor-de-arquivos
Gestor de arquivos feito em C para disciplina de Algoritmos e Estruturas de Dados
https://github.com/joaorafa19/gestor-de-arquivos
aeds aeds2 c
Last synced: 4 months ago
JSON representation
Gestor de arquivos feito em C para disciplina de Algoritmos e Estruturas de Dados
- Host: GitHub
- URL: https://github.com/joaorafa19/gestor-de-arquivos
- Owner: JoaoRafa19
- Created: 2023-05-31T02:21:00.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T20:26:27.000Z (about 2 years ago)
- Last Synced: 2024-12-28T11:43:23.475Z (6 months ago)
- Topics: aeds, aeds2, c
- Language: C
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tp_AEDSII
TP de AEDS
## Tipos de dados
### String
Abstracao de uma string, para facilitar a manipulacao de strings em C.
```c
typedef char* String;
```### Lista
## Métodos auxiliares
### Função para limpar caracteres especiais da entrada
adaptada do site [geeksforgeeks](https://www.geeksforgeeks.org/c-program-to-trim-leading-white-spaces-from-string/)
```c
void strip(String string){
unsigned int i = 2;
unsigned int x = 2;
char c;
while((c = string[i++]) != '\0')
{
if(isalnum(c) || c =='.' )
{
string[x++] = c;
}
}
string[x]='\0';
}
```### Função para contar caracteres adaptada do site [tutorialspoint](https://www.tutorialspoint.com)
```c
int countChars(char *s, char c)
{
return *s == '\0' ? 0 : countChars(s + 1, c) + (*s == c);
}
```## Compilando o projeto

Para compilar todos os arquivos do projeto execute o comando do cmake e makefile
```shell
cd src && make
```## Instalation Guide
### Linux
#### Install build-essential
```bash
sudo apt-get install build-essential
```#### Install clang
```bash
sudo apt-get install clang```
#### Install g++
```bash
sudo apt-get install g++
```### Install Pkg-Config
```bash
sudo apt-get install pkg-config
```#### Install CMake
```bash
sudo apt-get install cmake
```#### Install Gtk
```bash
sudo apt-get install libgtk-3-dev
```#### Install