modularização

How to pass a dynamically allocated struct to a function in C?

The program must dynamically allocate the struct and pass it as a parameter. #include <stdio.h> #include <stdlib.h& ... p;escolha); if(escolha==0) break; } printar(cadastro, N); free(cadastro); return 0; }

How to modularize the following C code

Below follows a code for date input by the user and validation of the same, but I would like to modularize it. I do not know ... } PS: As "!"in the comments is that I use VSCode and an extension that leaves the comments colored with special characters.