https://github.com/othonalberto/vetordinamicoc
Apenas um estudo: Vetor dinâmico em C
https://github.com/othonalberto/vetordinamicoc
Last synced: about 1 year ago
JSON representation
Apenas um estudo: Vetor dinâmico em C
- Host: GitHub
- URL: https://github.com/othonalberto/vetordinamicoc
- Owner: othonalberto
- License: mit
- Created: 2017-04-25T01:58:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T01:46:37.000Z (about 9 years ago)
- Last Synced: 2025-01-30T23:42:15.581Z (over 1 year ago)
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vetordinamicoC
Apenas um estudo de implementação de um vetor dinâmico de inteiros em C.
### Funções desenvolvidas até o momento:
* vInit: inicia o vetor com a quantidade de elementos informada em CAPACIDADE_INICIAL (no arquivo _dv.h_)
* vDobraCapacidade: verifica se ainda há espaço para inserir outro elemento e, caso o vetor esteja cheio, dobra a capacidade atual
* vInsere: insere um elemento no vetor
* vFree: apaga todo o vetor
### Fonte(s):
* https://www.happybearsoftware.com/implementing-a-dynamic-array