fprint an array of string pointers?
i'm working on a project that has dynamically allocated strings placed into a dynamically allocated array. i'm trying to use fprint to print out all of the strings to standard output, but it's not working too well.
here's my statement:
rec_arr is a dynamically allocated char** array and rec_index is the number of pointers in rec_arr. using a for-loop seems to work, but i'm not sure if i'm fully utilizing the potential of fwrite. any help would be appreciated!
fwrite ((char**)rec_arr, sizeof(char*), rec_index, stdout);