Hi, I’m Neel

This is a log of my adventures in systems programming and other development stuff

My First Contribution to Zig: Implementing insque() and remque()

I recently made my first contribution to the Zig programming language by implementing insque() and remque(), two doubly-linked list functions from the C standard library. What are insque and remque? These functions are used to insert and remove from queues built from doubly-linked lists, with the function signatures below: void insque(void *element, void *pred); void remque(void *element); Their implementations were surprisingly simple, just involving casting pointers into node structs and hooking up the new node to its neighbors or the opposite if removing, which is why I chose this to be my first contribution. ...

6 min · Neel