What is the code that can be seen from April's assignment in The Purple Jacket?
I looked into it, because I wanted to know if it was just gibberish pseudo-coding or if it was actually something.
Here's the answer:
The language is C.
It's a very generic code.
The part that can be seen in the clip serves to allocate memory to go through a list of groups. (The rest is missing.)
It is an excerpt of Linux kernel code. It is from the function groups_allocate within the groups.c unit. It allocates memory of the proper size so it can be filled with the result of a group info query.
Furthermore, the code is featured on Hackertyper. The producers likely took a screenshot of that website to use as generic source code for that scene.














