Skip to content

My library, composed from libft, ft_printf, get_next_line and other useful C functions I coded

License

Notifications You must be signed in to change notification settings

itseugen/c_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c_library

My library, composed from libft, ft_printf, get_next_line and other useful C functions I coded

Coded in


Includes following functions:

  • All functions in my libft.
  • My get_next_line function (Note that this version can handle more than one file descriptor at a time).
  • My own version of printf.
  • ft_isstr: A function that applies a function that takes an integer (for example isdigit) to an entire string and returns 1 if the function returns 1 for the entire string.
  • Terminal colours: Functions to change the colour your programs output in the terminal.
  • An implementation of the abs() function.
  • My version of atof().
  • A version of fprintf, works just like my ft_printf except taking a file descriptor to print to.

Installation and Usage

  1. Clone the repository:
git clone https://github.com/itseugen/c_library libft
  1. Enter the directory and build the library:
cd libft
make

Optional: Clean object files:

make clean
  1. Include the headerfile in your function:
#include "filepath/libft.h"

Example: If you clone the libft inside the repository you are working on it would look as follows:

#include "libft/libft.h"
  1. To compile correctly just add the "libft.a" in your compiler call:
gcc myfile.c libft.a

❕ Note

I'm planning on updating this repository with new functions in the future. I might also update some existing functions to fix bugs, add features or make better error handling, although unlikely a new version of this library might not work with code built for an older version.


This project is part of my studies at 42 Heilbronn

About

My library, composed from libft, ft_printf, get_next_line and other useful C functions I coded

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •