added bgoulard lib + made lib sources in their own directory in build/ for readability

This commit is contained in:
B.Goulard 2024-11-01 00:00:14 +01:00
parent 83cc8419a0
commit 0a390934d6
457 changed files with 21807 additions and 61 deletions

View 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);
}