add stddef.h

This commit is contained in:
2024-11-26 20:18:06 +01:00
parent e809472771
commit b19228dccd
2 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/26 16:38:01 by tomoron #+# #+# */ /* Created: 2024/11/26 16:38:01 by tomoron #+# #+# */
/* Updated: 2024/11/26 16:41:22 by tomoron ### ########.fr */ /* Updated: 2024/11/26 20:17:37 by tomoron ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -17,6 +17,7 @@
# define DEBUG 1 # define DEBUG 1
# endif # endif
void *malloc(size_t size) #include <stddef.h>
void *malloc(size_t size);
#endif #endif

View File

@ -6,10 +6,14 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/23 17:19:59 by tomoron #+# #+# */ /* Created: 2024/11/23 17:19:59 by tomoron #+# #+# */
/* Updated: 2024/11/26 16:42:53 by tomoron ### ########.fr */ /* Updated: 2024/11/26 20:17:08 by tomoron ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "includes/malloc.h"
void *malloc(size_t size) void *malloc(size_t size)
{ {
(void)size;
return(0);
} }