Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* fetch_field(char*,int);
- char** response = (char**)malloc(sizeof(char*)); //Este sera mi array de strings
- response[0] = fetch_field(arg1,arg2); //Guardo el puntero al primer string en la primera posición del array
- char* myfield = fetch_field(arg1,arg2); //Guardo el puntero en otro puntero
- char** response = (char**)malloc(sizeof(char*));
- response[0] = myfield; //Asigno el puntero al array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement