Skip to content
/ libft Public

Library with a bunch of standard functions on C, and some my own.

Notifications You must be signed in to change notification settings

prippa/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft

First project in school 42

Comprehension C from scratch

In this project i implemented many functions from standard libraries like: string.h, stdlib.h, stdio.h ... etc. You may ask WHY? First of all it's a really good experience. Second is that in school 42 many of projects in general should be implemented using only: malloc, free, write, open, read, close, exit. Standard Functions. So if you write a bad libft this will affect future projects.


Here is some basic functions that are often used:


bzero

strlen

strcpy

strcat

strcmp

strdup

atoi

printf

main test

output result

getline

get_next_line in general works same as standard function getline

get_next_line prototype: int get_next_line(const int fd, char **line);

The return value can be 1, 0 or -1 depending on whether a line has been read, when the reading has been completed, or if an error has happened respectively.

main test

output result

more info

About

Library with a bunch of standard functions on C, and some my own.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published