Skip to content

Latest commit

 

History

History

0x13-bit_manipulation

0x13. C - Bit manipulation

About

An introductory project on:

  • Bit manipulation
  • Bitwise operators

Requirements

  • Ubuntu 14.04
  • gcc 4.8.4

File Descriptions

Mandatory

0-binary_to_uint.c - function that converts a binary number to an unsigned int.

1-print_binary.c - function that prints the binary representation of a number.

2-get_bit.c - function that returns the value of a bit at a given index.

3-set_bit.c - function that sets the value of a bit to 1 at a given index.

4-clear_bit.c - function that sets the value of a bit to 0 at a given index.

5-flip_bits.c - function that returns the number of bits you would need to flip to get from one number to another.

Advanced

100-get_endianness.c - function that checks the endianness.

101-password - finds the password for this program and saves it in a file.