Skip to content

Latest commit

 

History

History

0x11-singly_linked_lists

0x11. C - Singly linked lists

About

An introductory project on:

  • How to build and use linked lists
  • The difference between linked lists and arrays

Requirements

  • Ubuntu 14.04
  • gcc 4.8.4

File Descriptions

lists.h - header file containing the definition of list_t and the prototypes of all functions.

0-print_list.c - function that prints all the elements of a list_t list.

1-list_len.c - function that returns the number of elements in a linked list_t list.

2-add_node.c - function that adds a new node at the beginning of a list_t list.

3-add_node_end.c - function that adds a new node at the end of a list_t list.

4-free_list.c - function that frees a list_t list.

Advanced

100-first.c - function that executes before the main function.

101-hello_holberton.asm - assembly that prints Hello, Holberton, followed by a new line.