/42Libft

42 School's Libft Project (Library of more-or-less useful functions for later projects)

Primary LanguageC

42Libft

42 School's Libft Project (Library of more-or-less useful functions for later projects)

Linked list data types

Libft defines 2 linked list types:

  • t_list (Simply linked)
  • t_dlist (Doubly linked)

Each of those types defines a void *content and a size_t content_size

Binary tree data type

Libft defines t_btree. It contains a void *data and a size_t data_size

Vectors

Libft defines 2 vector types:

  • t_str
  • t_tab

Describing points and sizes

Libft defines two types for that:

  • t_point
  • t_size

Typedefs

Libft defines the following C99 types

  • t_uint8
  • t_int8
  • t_uint16
  • t_int16
  • t_uint32
  • t_int32
  • t_uint64
  • t_int64

Booleans

Libft defines 4 macros:

  • TRUE = 1
  • YES = 1
  • FALSE = 0
  • NO = 0

It also defines a t_bool type that I never use (which is an enum)