{type} ptr = ({type})calloc(, sizeof({type}));
      if (ptr == NULL) {
      	printf("Memory allocation failed!\n");
      	exit(0);
      }
      free(ptr); 
      
      C language logo

      Allocate with calloc

      Codiga's C Recipes

      Allocate memory using calloc

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.