31 lines
No EOL
1.2 KiB
C
Executable file
31 lines
No EOL
1.2 KiB
C
Executable file
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_vecint.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/18 11:12:31 by thrieg #+# #+# */
|
|
/* Updated: 2025/02/16 19:05:48 by thrieg ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef FT_VECINT_H
|
|
# define FT_VECINT_H
|
|
|
|
# include <stdlib.h>
|
|
|
|
typedef struct s_vecint
|
|
{
|
|
int *buffer;
|
|
size_t index;
|
|
size_t size;
|
|
char finished;
|
|
} t_vecint;
|
|
|
|
t_vecint *ft_vecint_concat(t_vecint *dest, const void *src, size_t size);
|
|
t_vecint *ft_create_vecint(size_t size);
|
|
void ft_free_vecint(t_vecint **vec);
|
|
t_vecint *ft_vecint_pushback(t_vecint *dest, int c);
|
|
|
|
#endif |