Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Your first library

NotificationsYou must be signed in to change notification settings

crigonza/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft is a project at 42 that aims to recreate some of the standard C library functions and some additional ones that can be useful for later projects.

Getting Started

To use this library, you need to clone this repository and compile it with make. This will generate a libft.a file that you can link with your own source files.

Functions

The functions in this library are divided into three categories:

  • Libc functions: These are functions that mimic the behavior of some of the standard C functions, such asft_memset,ft_bzero,ft_memcpy,ft_memcpy,ft_memmove,ft_memchr,ft_memcmp,ft_strlen,ft_strdup,ft_strlcpy,ft_strlcat,ft_strchr,ft_strrchr,ft_strnstr,ft_strncmp,ft_atoi,ft_isalpha,ft_isdigit,ft_isalnum,ft_isascii,ft_isprint,ft_toupper,ft_tolower andft_calloc.
  • Additional functions: These are functions that are not part of the standard C library, but are useful for some common tasks, such asft_substr,ft_strjoin,ft_strtrim,ft_split,ft_itoa,ft_strmapi,ft_putchar_fd,ft_putstr_fd,ft_putendl_fd andft_putnbr_fd.
  • Bonus functions: These are functions that deal with linked lists, such asft_lstnew,ft_lstadd_front,ft_lstsize,ft_lstlast,ft_lstadd_back,ft_lstdelone,ft_lstclear,ft_lstiter andft_lstmap.You can find more details about each function in the header filelibft.h.

Usage

To use this library in your own project, you need to include the header filelibft.h in your source files and link thelibft.a file when compiling. For example:

gcc -Wall -Wextra -Werror -I./libft -L./libft -lft main.c

About

Your first library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp