That definitely runs with my code, I forgot to put brackets around pa and pb before. Geez
It doesn't fix my bad_access error, which makes me think that my real problem is how I'm...
Type: Posts; User: Seag
That definitely runs with my code, I forgot to put brackets around pa and pb before. Geez
It doesn't fix my bad_access error, which makes me think that my real problem is how I'm...
Thank you for the suggestion, though casting it as you pointed out doesn't allow me access to the members of the struct. I would have to cast it like:
Entries *pa = (Entries*)a;
Either way, I...
Hello,
I've searched through many code examples and think that I have the correct compare function, but my problem is that when I run the code, I get an error EXC_BAD_ACCESS. XCode points to the...
Ah, that makes sense. For some reason I forgot about using strncmp to limit how many characters were read, so any junk at the end would be ignored. Thank you very much, that fixed my bug! :)
Hello, I have done quite a bit of searching for a solution, and have implemented something similar, but am still getting a bug. The function that I think is giving me problems is:
int...
That worked perfectly thank you! This is what happens when you're still tapping away at 4am before finally calling it a night. I really appreciate it!
Because of your input, I also realized that...
Hello there,
I'm reading a dictionary file into a program and reading character by character with fgetc. I then use a switch statement to deal with each character read in. Once a full word or...