added bgoulard lib + made lib sources in their own directory in build/ for readability
This commit is contained in:
parent
83cc8419a0
commit
0a390934d6
457 changed files with 21807 additions and 61 deletions
20
libft_personal/src/ft_optional/ft_optional_unwrap.c
Normal file
20
libft_personal/src/ft_optional/ft_optional_unwrap.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_optional_unwrap.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/02 18:07:00 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/06/25 22:28:55 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_optional.h"
|
||||
|
||||
void *ft_optional_unwrap(t_optional opt)
|
||||
{
|
||||
if (opt.pres != OPT_NONE)
|
||||
return (opt.val);
|
||||
return (NULL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue