Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1 KB

File metadata and controls

24 lines (19 loc) · 1 KB

C - Bit manipulation

Description

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

Tasks

  • 0. 0
  • 1. 1
    • 1-print_binary.c - Function that prints the binary representation of a number.
  • 2. 10
    • 2-get_bit.c - Function that returns the value of a bit at a given index.
  • 3. 11
    • 3-set_bit.c - Function that sets the value of a bit to 1 at a given index.
  • 4. 100
    • 4-clear_bit.c - Function that sets the value of a bit to 0 at a given index.
  • 5. 101
    • 5-flip_bits.c - Function that returns the number of bits you would need to flip to get from one number to another.

Author