I understand how to create a struct on the heap using malloc. Was looking for some documentation regarding creating a struct in C on t
struct
malloc
The same way you declare any variable on the stack:
struct my_struct {...}; int main(int argc, char **argv) { struct my_struct my_variable; // Declare struct on stack . . . }