Skip to content

HaroWana/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Libft - Your Very First Own Library

This project is a library of C functions aimed at replicating some of the standard functions found in the C standard library (libc) and implementing additional functions for manipulating strings, memory, and linked lists.

Table of Contents

Introduction

In this project, you will find a collection of functions designed to mimic various standard C library functions. Each function adheres to the same behavior and prototype as its counterpart in the libc but is prefixed with 'ft_'.

Features

  • Replicates standard C library functions with 'ft_' prefix
  • Additional functions for string manipulation
  • Memory manipulation functions
  • Linked list manipulation functions

Usage

To use this library, simply include the provided header file libft.h in your C code and link against the compiled library file libft.a (Makefile provided).

Functions

Part 1 - Libc Functions

  • ft_isalpha
  • ft_isdigit
  • ft_isalnum
  • ft_isascii
  • ft_isprint
  • ft_strlen
  • ft_memset
  • ft_bzero
  • ft_memcpy
  • ft_memmove
  • ft_strlcpy
  • ft_strlcat
  • ft_toupper
  • ft_tolower
  • ft_strchr
  • ft_strrchr
  • ft_strncmp
  • ft_memchr
  • ft_memcmp
  • ft_strnstr
  • ft_atoi

Additional Functions

  • ft_substr
  • ft_strjoin
  • ft_strtrim
  • ft_split
  • ft_itoa
  • ft_strmapi
  • ft_striteri
  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Linked List Functions

  • ft_lstnew
  • ft_lstadd_front
  • ft_lstsize
  • ft_lstlast
  • ft_lstadd_back
  • ft_lstdelone
  • ft_lstclear
  • ft_lstiter
  • ft_lstmap

School Project

This project was developed as an exercise for a school project, aimed at reinforcing understanding of C programming concepts.

About

Libft is a C library project that replicates some of the standard libc functions and includes additional functions for string manipulation, memory management, and linked list operations.

Resources

Stars

Watchers

Forks

Contributors