
Write free_str_array, which releases a NULL-terminated array of strings and every string in it, then returns how many strings it held.
free_str_array({"git", "gcc", "make", NULL})in=[git][gcc][make] freed=3free_str_array({"head", "", "tail", NULL})in=[head][][tail] freed=3free_str_array({NULL})in= freed=0free_str_array(NULL)in=null freed=0free_str_array.cfree<stdlib.h>declares free<stddef.h>defines size_t and NULL
Run the tests to grade your code
Write free_str_array, which releases a NULL-terminated array of strings and every string in it, then returns how many strings it held.
free_str_array({"git", "gcc", "make", NULL})in=[git][gcc][make] freed=3free_str_array({"head", "", "tail", NULL})in=[head][][tail] freed=3free_str_array({NULL})in= freed=0free_str_array(NULL)in=null freed=0free_str_array.cfree<stdlib.h>declares free<stddef.h>defines size_t and NULL
Run the tests to grade your code
Memory will appear here