ft_memalloc.c 1022 B

12345678910111213141516171819202122
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_memalloc.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/08 15:58:54 by mazimi #+# #+# */
  9. /* Updated: 2015/02/04 21:18:12 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void *ft_memalloc(size_t size)
  14. {
  15. void *mem;
  16. if ((mem = malloc(size)))
  17. return (mem);
  18. return (NULL);
  19. }