30 lines
443 B
C
30 lines
443 B
C
/**
|
|
* Hlavičkový soubor types.h
|
|
*
|
|
* OBSAH V TOMTO SOUBROU NEUPRAVUJTE!
|
|
*/
|
|
#include <stdbool.h>
|
|
|
|
#ifndef TYPES_H
|
|
#define TYPES_H
|
|
|
|
|
|
typedef struct {
|
|
int *items;
|
|
int size;
|
|
} Vector;
|
|
|
|
|
|
// DEKLAROVANÉ HLAVIČKY FUNKCÍ NIJAK NEMĚŇTE
|
|
|
|
Vector *vector_ctor(void);
|
|
|
|
void vector_dtor(Vector **vector);
|
|
|
|
bool vector_resize(Vector *v, int new_size);
|
|
|
|
bool vector_expand(Vector *vec, int value);
|
|
|
|
void vector_print(Vector *v);
|
|
|
|
#endif
|