GithubHelp home page GithubHelp logo

libft's Introduction

libft


๐Ÿ—ฃ๏ธ 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. ๐Ÿš€ man : 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

  • ft_isascii - test for ASCII character.
  • ft_isalnum - alphanumeric character test.
  • ft_isalpha - alphabetic character test.
  • ft_islower - lower-case character test.
  • ft_isupper - upper-case character test.
  • ft_isdigit - decimal-digit character test.
  • ft_isprint - printing character test (space character inclusive).
  • ft_tolower - upper case to lower case letter conversion.
  • ft_toupper - lower case to upper case letter conversion.

Functions from <stdlib.h> library

  • ft_atoi - convert ASCII string to integer.
  • ft_calloc - memory allocation.

Functions from <strings.h> library

  • ft_bzero - write zeroes to a byte string.

  • ft_memset - write a byte to a byte string.

  • ft_memchr - locate byte in byte string.

  • ft_memcmp - compare byte string.

  • ft_memmove - copy byte string.

  • ft_memcpy - copy memory area.

  • ft_strlen - find length of string.

  • ft_strchr - locate character in string (first occurrence).

  • ft_strrchr - locate character in string (last occurence).

  • ft_strstr - locate a substring in a string.

  • ft_strnstr - locate a substring in a string (size-bounded).

  • ft_strcmp - compare strings.

  • ft_strncmp - compare strings (size-bounded).

  • ft_strcpy - copy strings.

  • ft_strncpy - copy 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

  • ft_lstnew - create new list.
  • ft_lstsize - count elements of a list.
  • ft_lstlast - find last element of list.
  • ft_lstadd_back - add new element at end of list.
  • ft_lstadd_front - add new element at beginning of list.
  • ft_lstdelone - delete element from list.
  • ft_lstclear - delete sequence of elements of list from a starting point.
  • ft_lstiter - apply function to content of all list's elements.
  • ft_lstmap - apply function to content of all list's elements into new list.

made by GHALMI MOHCINE remember that's my linkedin

libft's People

Contributors

mohcine-ghalmi avatar

Stargazers

Mahri Imad-Eddine avatar aarchtou avatar luna avatar  avatar Talal Miftah avatar Yahya TAQSI avatar Siham El-Hilali  avatar  avatar Yassine Bayed avatar Makram Boukaiz avatar B.R.O.L.Y avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.