SkillAgentSearch skills...

Libft

This project is about coding a C library. It will contain a lot of general purpose functions your programs will rely upon.

Install / Use

/learn @achrafelkhnissi/Libft
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center"> 42cursus' libft </h1> <p align="center"> <b><i>Development repo for 42cursus' libft project</i></b><br> For further information about 42cursus and its projects, please refer to <a href="https://github.com/achrafelkhnissi/1337/tree/master/42curses"><b>42cursus repo</b></a>. </p> <h3 align="center"> <a href="#%EF%B8%8F-about">About</a> <span> · </span> <a href="#-testing">Testing</a> </h3>

🗣️ About

The aim of this project is to code a C library regrouping usual functions that you'll be allowed to use in all your other projects.

🚀 TLDR: this project consists of coding basic C functions (see below), which are then compiled
into a library for use in other projects of the cursus.

Functions from <ctype.h> library

Functions from <stdlib.h> library

Functions from <strings.h> library

Functions from <string.h> library

  • ft_strlen - find length of string.
  • ft_strchr - locate character in string (first occurrence).
  • ft_strrchr - locate character in string (last occurence).
  • ft_strnstr - locate a substring in a string (size-bounded).
  • ft_strncmp - compare strings (size-bounded).
  • ft_strnrcmp - reversely compare strings (size-bounded).
  • ft_strdup - save a copy of a string (with malloc).
  • ft_strlcpy - size-bounded string copying.
  • ft_strlcat - size-bounded string concatenation.

Non-standard functions

  • ft_putchar_fd - output a character to given file.
  • ft_putstr_fd - output string to given file.
  • ft_putendl_fd - output string to given file with newline.
  • ft_putnbr_fd - output integer to given file.
  • ft_itoa - convert integer to ASCII string.
  • ft_substr - extract substring from string.
  • ft_strtrim - trim beginning and end of string with the specified characters.
  • ft_strjoin - concatenate two strings into a new string (with malloc).
  • ft_split - split string, with specified character as delimiter, into an array of strings.
  • ft_strmapi - create new string from modifying string with specified function.

Linked list functions

Note: functions marked with * are bonus functions (not mandatory by the project's subject).

Third-party testers

Related Skills

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated4mo ago
Forks0

Languages

C

Security Score

77/100

Audited on Nov 26, 2025

No findings