ft_strdel.c 994 B

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