Skip to content

C Library PreProcessor and NASM implementation with unit tests in python3

License

Notifications You must be signed in to change notification settings

lucasGras/minilibc

Repository files navigation

minilibc

Build Status

Preprocessor minilibc:

Usage:

To simply run minilibc tester:

./run_tests.sh

To compile manualy and run

mkdir build ; cd build ; cmake .. ; make

cd Preprocessor/tests ; ./tester.sh

main in preproc_minilib.h and tests in preproc_minilib_test.h

  • int pp_putc(char c)
  • void pp_putstr(char *str)
  • size_t pp_strlen(char *str)
  • char *pp_strcpy(char *src, char *dest)
  • char *pp_strdup(char *ptr)
  • char *pp_memstrcat(char *src, char *dest)
  • int pp_strcmp(char *str, char *str1)
  • char *memrevstr(char *)
  • int pp_atoi(char *str)
  • int pp_digitlen(int)
  • char *pp_int_to_str(int)
  • char *pp_index(char *, int)

Assembly minilibc:

Syscall lists: Full table 64-bits