An Introduction to structures and typedef
Files | Description |
---|---|
dog.h | Define a new type struct dog with the following elements |
1-init_dog.c | Write a function that initialize a variable of type struct dog. |
2-print_dog.c | Write a function that prints a struct dog. |
dog.h | Define a new type dog_t as a new name for the type struct dog. |
4-new_dog.c | Write a function that creates a new dog. |
5-free_dog.c | Write a function that frees dogs. |
Joseph kakai
Email: [email protected]