Thanks for the help, your answer made sense. Also In this case I only ever want 1 queue, so a global head is fine for me. This was just a test program because I was confused, so I didn't manage my...
Type: Posts; User: sliceofpi
Thanks for the help, your answer made sense. Also In this case I only ever want 1 queue, so a global head is fine for me. This was just a test program because I was confused, so I didn't manage my...
Hi guys! I'm working on a project in C that requires a few queues, so I started to write a basic linked list style data structure that I could treat as a queue. Once I got the node struct and push()...
I liked the idea of your snippet of code that you posted, but it raises a few more questions for me - since I have buffering off I only want one byte per time but these keys send anywhere from 2-4...
So this issue now is that since Im only processing one byte at a time, I can strip/skip the leading \x00 or \xE0 but since those are followed by one or two bytes, the rest still prints. At least they...
Thanks so much! Now that I know I can identify them by prefix I should be good to go - much appreciated :)
Hello all - I have a simple program that mimics taking in a password in the terminal. To do this I turn off echoing and Icanon so that I can process each char as it is typed. I check if the current...