Search results

  1. A

    Help debug this doubly linked list

    I implemented doubly linked list using the following program in C but the create function is not working as intended. strangely the insert functions work great. if i create a list with more than two values and display it it enters an infinite loop. #include <stdio.h> #include <stdlib.h>...
  2. A

    How to run a loop until a keypress in C?

    How do i keep running a loop until user presses a key. I'm coding a snake game with ncurses (linux) and its all done except that the snake does not move automatically :D i heard it can be done be creating a seperate thread using pthreads?
Back
Top