Compiling!
This commit is contained in:
parent
019d25174c
commit
a22b9ea234
24 changed files with 607 additions and 113 deletions
|
|
@ -71,3 +71,14 @@ void vec_u8_reverse(t_vec_u8 *vec)
|
|||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
t_error vec_u8_back(t_vec_u8 *vec, t_u8 **out)
|
||||
{
|
||||
t_u8 *temporary;
|
||||
|
||||
if (out == NULL)
|
||||
out = &temporary;
|
||||
if (vec->len != 0)
|
||||
return (*out = &vec->buffer[vec->len - 1], true);
|
||||
return (false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue