Skip to content
Snippets Groups Projects
Select Git revision
  • b49410017de27cbc9c97c324e8f61182ddb16f14
  • main default protected
  • jw_sonar
  • v6.0.0 protected
  • bedran_exercise-list
  • ask-user-to-delete-exercises-on-duplicates
  • update-dependencies
  • jw_sonar_backup
  • add_route_assignments
  • 6.0.0-dev
  • 5.0.1
  • 5.0.0
  • 4.1.0
  • 4.0.0
  • 3.5.3
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
  • 3.0.0
29 results

.env.vault

Blame
  • vectors.h 746 B
    /*
        Autheur		: Abivarman KANDIAH
        Date		: 22/02/2022
        Fichier		: vectors.h
        Descritpion : Vectors functions header
    */
    
    #ifndef _VECTORS_H_
    #define _VECTORS_H_
    
    #define VECTOR_INIT_CAPACITY 4
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <stdint.h>
    #include <stdbool.h>
    #include <assert.h>
    
    typedef int type;
    typedef struct vector_* vector;
    
    vector vector_create();
    int vector_length(vector vec);
    void vector_push(vector vec, type element);
    type vector_pop(vector vec);
    void vector_set(vector vec, int index, type element);
    type vector_get(vector vec, int index);
    type vector_remove(vector vec, int index);
    void vector_insert(vector vec, type element, int index);
    void vector_empty(vector vec);
    void vector_free(vector vec);
    
    #endif