Thanks for everyone's help so far, im working on using realloc instead of malloc. So far this is what I have but I get a segmentation fault when I try to add an item with my function add_vhost.
...
Type: Posts; User: farklem
Thanks for everyone's help so far, im working on using realloc instead of malloc. So far this is what I have but I get a segmentation fault when I try to add an item with my function add_vhost.
...
I have written some simple code to add/remove items to/from an array. I am trying to modify the code so that it will accept any data type instead of having a make a new add/del function for each...