Name: Anonymous 2010-11-03 8:25
I have a struct like
Later on I want to make an
Now how do I reserve the memory for
So far I have:
With that I can't
typedef struct { char* dildo; int etc } anus;.Later on I want to make an
anus array, with dildo being a string entered by the user.Now how do I reserve the memory for
dildo in my anus array?So far I have:
typedef struct { char* dildo; int etc } anus;
...
char* small_dildo = fancy_input_routine();
anus* anii = (anus*) malloc(array_size * sizeof(anus));With that I can't
memcpy any small_dildo into my anii obviously, however I'm not quite sure how to do it.