An introductory project on:
- When, why and how to use structures
- How to use
typedef
- Ubuntu 14.04
- gcc 4.8.4
dog.h - header file with function prototypes, struct dog
, and type dog_t
as a new name for the type struct dog
.
1-init_dog.c - functoin that initializes a variable of type struct dog
.
2-print_dog.c - function that prints a struct dog
.
4-new_dog.c - function that creates a new dog_t
.
5-free_dog.c - function that frees a dog_t
.