Skip to content

Latest commit

 

History

History

structures_typedef

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

C - Structures, typedef

Description

  • tests/ - Main functions provided by Holberton School to test the files.
  • dog.h - Header file with function prototypes and with a structure.

Tasks

  • 0. Poppy
    • dog.h - New type struct dog with the following elements: name (char *), age (float) and owner (char *).
  • 1. A dog is the only thing on earth that loves you more than you love yourself
    • 1-init_dog.c - Function that initialize a variable of type struct dog.
  • 2. A dog will teach you unconditional love. If you can have that in your life, things won't be too bad
  • 3. Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read
    • dog.h - New type dog_t as a new name for the type struct dog.
  • 4. A door is what a dog is perpetually on the wrong side of
  • 5. How many legs does a dog have if you call his tail a leg? Four. Saying that a tail is a leg doesn't make it a leg

Author