ft_memdel.c 987 B

12345678910111213141516171819202122
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_memdel.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/21 14:35:21 by mazimi #+# #+# */
  9. /* Updated: 2014/12/02 15:56:28 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void ft_memdel(void **ap)
  14. {
  15. if (ap)
  16. {
  17. free(*ap);
  18. *ap = NULL;
  19. }
  20. }