https://github.com/kuninoto/42_libft
Static C library with usual functions and recreations of libc functions to use throughout the course.
https://github.com/kuninoto/42_libft
42 42-school 42born2code 42cursus 42porto 42portugal 42projects 42school ecole42 libft libft-42 libft42
Last synced: 6 months ago
JSON representation
Static C library with usual functions and recreations of libc functions to use throughout the course.
- Host: GitHub
- URL: https://github.com/kuninoto/42_libft
- Owner: Kuninoto
- Created: 2022-08-13T18:15:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-01T23:48:01.000Z (6 months ago)
- Last Synced: 2025-04-05T12:42:03.627Z (6 months ago)
- Topics: 42, 42-school, 42born2code, 42cursus, 42porto, 42portugal, 42projects, 42school, ecole42, libft, libft-42, libft42
- Language: C
- Homepage:
- Size: 1.64 MB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Libft (42Porto - 42Cursus)
## Grade: 125/100
### Description
A static C library containing utility functions and reimplementations of common [libc](https://www.gnu.org/software/libc/) functions. This library is a jumpstart to the 42 school course and
is used throughout it.### Installing and running the project:
1- Clone this repository
git clone https://github.com/Kuninoto/42_Libft
2- Run `make`make
3- Run `make clean` so that you don't keep the object files that you won't need anymoremake clean
4- Compile your project (e.g. `main.c`) with your new `libft.a`cc -Wall -Wextra -Werror main.c libft.a
#### Makefile Available Targets:
`make` or `make all` - Makes `libft.a`
`make bonus` - Makes `libft.a` with bonus functions (not mandatory as part of the mandatory part of the project)
`make clean` - Deletes all the resulting object files
`make fclean` - Deletes `libft.a` and all the resulting object files
`make re` - Deletes everything (object files and `libft.a`) and rebuilds `libft.a`#### Adding new functions to this library:
- Add their prototypes to `libft.h`
- Add their source files to this repository
- Add their source file names to `LIB_SRCS` variable on the Makefile##### To keep track of what's inside your resulting `libft.a` run `ar -t libft.a`
### Tests:
[libft-war-machine](https://github.com/y3ll0w42/libft-war-machine)
[libft-unit-test](https://github.com/alelievr/libft-unit-test)
![]()
![]()
## Disclaimer
> At [42 School](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written in accordance to the "Norm", the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.
---
Made by Nuno Carvalho (Kuninoto) | nnuno-ca@student.42porto.com