Skip to content

Latest commit

 

History

History

0x0D-structures_typedef

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x0D. C - Structures, typedef

About

An introductory project on:

  • When, why and how to use structures
  • How to use typedef

Requirements

  • Ubuntu 14.04
  • gcc 4.8.4

File Descriptions

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.