/LibftASM

Learning assembly by coding a few functions from the Standard libC.

Primary LanguageC

LIBFTS.A

Learning assembly by writing a small library of libC functions.

Setup: X86, Intel syntax, with nasm.

Usage

Requirements:

  • nasm: brew install nasm

Compilation

make			# compile the library
make test		# compile and execute some C unit tests

Functions

Part1

  • bzero
  • strcat
  • isalpha
  • isdigit
  • isalnum
  • isascii
  • isprint
  • toupper
  • tolower
  • puts

Part2

  • strlen
  • memset
  • memcpy
  • strdup

Part3

  • ft_cat: a function that act like the cat binary
make cat_test	# compile and execute some bash unit tests for ft_cat

Bonus

  • memalloc
  • strnew
  • strcpy
  • strcmp
  • strchr
  • strjoin
  • atoi