Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dde-fite/42_libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_Libft

moulinette passing francinette passing Static Badge

This work is published under the terms of MIT license

My first project as a student at 42

Since external libraries cannot be used in 42, except in specific cases, a library of basic functions must be created, recreating the standard C library, as well as other functions that are useful throughout the course, including those related to linked lists. You can also create your own functions of your choice.

Explanations of functions

Own Functions

ft_isspace

ft_strndup

ft_maxnbr/ft_minnbr

ft_maxsize/ft_minsize

Libc Functions

...

Additional Functions

...

Bonus Functions

ft_lstnew

ft_lstadd_front

ft_lstsize

ft_lstlast

ft_lstadd_back

ft_lstdelone

ft_lstclear

ft_lstiter

ft_lstmap

Requirements

The functions and Makefile are designed for use in a UNIX-like environment; any use outside this scope does not guarantee correct or efficient operation.

  • Make
  • GCC

Usage

Compiling

  • For the general section
make
  • For the bonus section.
make bonus

Using it as a static library

After installation is complete, the libft.a file will appear. This static library can be used in any project.

You can include the library by including libft.h and libft.a as in the example:

  • First include the header file in your C or header files.
#include "libft.h"
  • Then compile using the library
gcc main.c libft.a

Got any suggestions?

If you find any errors or have any new ideas for improving this repository, feel free to open an Issue or Pull Request, or contact me at my email address: [email protected]

About

Library of useful functions in C for 42 school projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published