Second Year Epitech Project
Recode 12 of the C standard library functions in Assembly x86-64.
After clonning the repository you can test the functions by writing this C code:
int main(void) {
void *buff = dlopen("./libasm.so", RTLD_LAZY);
char *s;
void *(*funptr)(void *, int, size_t) = dlsym(buff, "func name");
s = funptr(s, 'o', 10);
printf("%s\n", s);
}and replace "func name" with the name of the function you want to test.
you can then compile the code with the following command:
make
gcc *.c
./a.out