Upon further investigation, I found that my merge_to_open() function is not doing what I think it is. It is not adding some nodes that should be added.
Type: Posts; User: pboy
Upon further investigation, I found that my merge_to_open() function is not doing what I think it is. It is not adding some nodes that should be added.
Good catch. I made the change and it did not affect the infinite loop.
Is this better? [C] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread. - Pastebin.com
Full code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
Yes I have it all in a single file. It is pretty long so what's the best way to post it? Just paste it here?
I'm implementing the A* algorithm in order to solve a 15 puzzle: 15 puzzle - Wikipedia
It works fine for simple puzzles with few steps but when doing more complex puzzles, the program enters an...
But if I remove only the newest directory wouldn't that that still leave the higher level directories in fullpath?
Forgot a continue statement when I posted my code.
Hey guys
I have a function that recursively searches a directory tree for files and grabs their size and name.
void printdir(char *rdir, char *dir, char *fullpath, int depth, int fd)
{
...