Skip to content

mli42/mlibasm_tester

Repository files navigation

mlibasm_tester

Usage

Go in your libasm repository and :

git clone https://github.com/mli42/mlibasm_tester.git && cd ./mlibasm_tester/ && ./do.sh

To test errno on ft_strdup:
./strdup_kill and see if errno == ENOMEM

Checks leaks by using /usr/bin/leaks:
#define CHECKLEAKS 0 (in mlibasm.h) to disable it

Good news : It will check only what you have coded and compiled with your Makefile

/!\ Warning: If it only prints the header, there is a compilation problem
Delete the redirections in do.sh to see what's really happening

Functions

  • ft_strlen
  • ft_strcpy
  • ft_strcmp
  • ft_write
  • ft_read
  • ft_strdup

Bonus (from the piscine)

typedef struct  s_list
{
    void          *data;
    struct s_list *next;
}           t_list;
  • ft_atoi_base
  • ft_list_push_front
  • ft_list_size
  • ft_list_sort
  • ft_list_remove_if

Links

kill_malloc comes from this repo

About

My tester for 42libasm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published