> static int callback(void *NotUsed, int argc, char > **argv, char **azColName){ > int k; > rows=argc; > for(k=0;k<argc;k++) > { > buffer[k][counter]= argv[k]; > } > counter++; > return 0; > }
The data pointed to by argv[k] only exists for the duration of the callback. You have to copy the string, not the pointer. i.e: buffer[k][counter] = strdup(argv[k]); (won't work with blobs). Don't forget to free() it later. __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com