Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (retval == 0) {
- while (sqlite3_step(statement) == 100) {
- (&answer->rr)[count] = malloc(sizeof(struct dns_rr));
- (answer->rr)[count].name = malloc(strlen(text)+1);
- strcpy((answer->rr)[count].name, text);
- printf("------(answer->rr)[%i].name = %s %p\n", count, (answer->rr)[count].name, (answer->rr)[count].name);
- answer->header.ancount = ++count;
- }
- } else {
- answer->header.ancount = 0;
- }
- for (int i = 0; i < answer->header.ancount; i++) {
- printf("++++++(answer->rr)[%i].name = %s %p\n", i, (answer->rr)[i].name, (answer->rr)[i].name);
- }
Add Comment
Please, Sign In to add comment