If you build a linked list in C, and put the pointer to the next entry as the first element in your struct, then you only need a single variable (and two comparisons) to do sorted insertion into the list.
That’s too complicated for me to understand so here is my thing I know:
When using example code from the Internet, it’s important to read the comments at the top of the file before going to far into adapting it and then wondering why it isn’t working.
Hahaha ended up with different “Chromium” is that the joke? :D I don’t know if the collective understood but boy can I relate to searching the repo and getting way different stuff than I started looking for! XD
If I was that waiter, and it was an honest attempt at being polite by your mom, I’d have been happy with that friendly customer. Kind people, you are my tribe and I love you all dearly!
lemmy.world
Newest