Skip to content

Custom functions of the standard C Library written in Assembly x86-64

Notifications You must be signed in to change notification settings

YohanDecamps/Mini-LibC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini LibC

Second Year Epitech Project

Assignement

Recode 12 of the C standard library functions in Assembly x86-64.

Installation

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

alt text

About

Custom functions of the standard C Library written in Assembly x86-64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published