https://github.com/ThePhoenix77/libft
Custom C library with some handy defined functions for daily use.
https://github.com/ThePhoenix77/libft
Last synced: 5 months ago
JSON representation
Custom C library with some handy defined functions for daily use.
- Host: GitHub
- URL: https://github.com/ThePhoenix77/libft
- Owner: ThePhoenix77
- Created: 2023-12-25T07:08:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T10:58:09.000Z (over 1 year ago)
- Last Synced: 2025-04-19T20:46:41.592Z (6 months ago)
- Language: C
- Homepage:
- Size: 49.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libft.a - Your Custom C Library
`libft.a` is a custom C library containing a collection of commonly used functions to make your C programming life easier. This library provides various utility functions for string manipulation, memory operations, linked list handling, and more.
## Table of Contents
1. [Introduction](#introduction)
2. [Included Files](#included-files)
3. [Usage](#usage)
4. [Makefile](#makefile)
5. [Contact](#contact)## Introduction
This library, `libft.a`, is designed to be a useful toolbox for C developers. It includes functions for tasks ranging from string manipulation (`ft_strdup`, `ft_strjoin`) to memory operations (`ft_memset`, `ft_memcpy`) and various others.
## Included Files
Here are some of the key files included in this library:
- **Makefile:** The Makefile contains rules for compiling the library and example programs.
- **Header File (`libft.h`):** This file declares all the function prototypes and any necessary macros.
- **Source Files:**
- `ft_atoi.c`
- `ft_bzero.c`
- ...
- `ft_toupper.c`- **Bonus Functions (with `_bonus` suffix):**
- `ft_lstadd_back_bonus.c`
- `ft_lstadd_front_bonus.c`
- ...
- `ft_lstsize_bonus.c`## Usage
To use `libft.a` in your projects, follow these steps:
1. Compile the library using the provided Makefile.
```bash
make
```2. Link your project with the compiled library (`libft.a`) and include the header file (`libft.h`) in your source code.
```c
#include "libft.h"
```3. Use the functions in your code as needed.
## Makefile
The Makefile simplifies the compilation process. Here are some key targets:
- `make`: Compiles the library (`libft.a`).
- `make clean`: Removes object files.
- `make fclean`: Removes object files and the compiled library.
- `make re`: Cleans and recompiles the library.## Contact
If you have any questions, suggestions, or issues, feel free to contact the project maintainer (tboussad):
- Boussaden Taha
- tahaboussaden7322@gmail.com