memory allocation in c on structs code example
Example: c allocate memory for struct
#include <stdlib.h>
struct your_struct *x = malloc(sizeof(struct your_struct));
#include <stdlib.h>
struct your_struct *x = malloc(sizeof(struct your_struct));