GithubHelp home page GithubHelp logo

willianlim / libft Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.51 MB

πŸ“š Re-create some C standard library functions

License: GNU General Public License v3.0

C 98.11% Makefile 1.89%
c algorithms data-structures linked-list makefile

libft's Introduction

C programming can be very tedious when one doesn’t have access to those highly useful standard functions. This project allows you to re-write those functions, understand them, and learn to use them. This library will help you with all your future C projects.

Getting Started

Step by step.

# Clone the project and access the folder
git clone https://github.com/willianlim/libft && cd libft/Libft

# Run Make so you can build the library
make

# Run Make with bonus if you want chained lists manipulation functions
make bonus

# Compile your main with the library, example:
cd .. && clang main_test.c Libft/libft.a

# Execute your program
./a.out

# Clean output objects with
make fclean

# Well done!
/*
   Exemple of main file for teste
*/

#include <stdio.h>
#include "Libft/libft.h"

int main()
{
	char	str[3] = "oi";
	char	*num;

	num = NULL;
	ft_putstr_fd("String de exemplo: oi\n", STDOUT_FILENO);
	ft_putstr_fd("Quantidade de bytes da string: ", STDOUT_FILENO);
	num = ft_itoa(ft_strlen(str));
	ft_putstr_fd(num, STDOUT_FILENO);
	free(num);
	ft_putstr_fd("\n", STDOUT_FILENO);
	return (0);
}

πŸš€ Content

🚩 Mandatory part

πŸ” Character recon and transformation

πŸ–‹οΈ String manipulations

πŸ’Ύ Memory manipulation

πŸ’Έ Conversions

πŸ“œ Printing

🚩 Bonus part

⛓️ Chained lists manipulation (BONUS)

Updating

The project is updated regularly with new functions that could be useful for other projects, or when I learn something new, or when I realize my code looks awful πŸ˜‰

Authors

License

libft's People

Contributors

willianlim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.