Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (lldb) r
- There is a running process, kill it and restart?: [Y/n] y
- Process 15721 exited with status = 9 (0x00000009)
- Process 17478 launched: './queueTest1' (x86_64)
- Testing the ascending queue
- Process 17478 stopped
- * thread #1: tid = 0x7b20a, 0x0000000100000a1e queueTest1`que_insert(queue=0x00000001001039b0, data=0x000000000000002a) + 62 at queueADT.c:62, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
- frame #0: 0x0000000100000a1e queueTest1`que_insert(queue=0x00000001001039b0, data=0x000000000000002a) + 62 at queueADT.c:62
- 59 n = malloc(sizeof(n));
- 60 n->next = NULL;
- 61 n->previous = NULL;
- -> 62 n->data = data;
- 63
- 64 // if compare function doesn't exist, place in front of queue
- 65 if(queue->cmp == NULL) {
Advertisement
Add Comment
Please, Sign In to add comment