GithubHelp home page GithubHelp logo

lbordonal / 01-ft_printf Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 1.31 MB

The goal of this project is pretty straightforward. Recode printf().

License: Other

C 91.44% Makefile 8.56%
42 c ft-printf printf 42born2code

01-ft_printf's Introduction

This repository contains code developed at 42 Porto for ft_printf Project, from 16/11/22 to 30/11/22.

๐Ÿ““ Subject

Click here for the subject of this project.

โšก Function Prototype

๐Ÿ… Mandatory Part

File conversions: cspdiuxX%

ft_printf.c

  • ft_printf - main function.

ft_printf_utils.c

  • check_argument - verify argument (char, string, pointer, decimal, integer, unsigned decimal, hexadecimal and %).

ft_args_csp.c

  • ft_putchar_count - char %c.
  • ft_putstr_count - string %s.
  • ft_putptr_count - pointer %p.
  • ft_ptrlen - return pointer length.
  • ft_putptr - print pointer in hexadecimal.

ft_args_diu.c

  • ft_putnbr_count - decimal %d and integer %i.
  • ft_put_unsignedint_count - unsigned decimal %u.
  • ft_numlen - return unsigned int length.
  • ft_uitoa - ft_itoa function for unsigned int.

ft_args_xXpercent.c

  • ft_puthex_count - hexadecimal lowercase %x and hexadecimal uppercase %X.
  • ft_hexlen - return hexadecimal length.
  • ft_puthex - print hexadecimal.
  • ft_putpercent - percent %%.

libft_functions.c

  • ft_putchar_fd - outputs the character to the given file descriptor.
  • ft_itoa - allocates and returns a string representing the integer received as an argument.
  • absolute_value - aux function to ft_itoa.
  • ft_digit_count - aux function to ft_itoa.

๐Ÿ“ Tester




This work is published under the terms of 42 Unlicense.

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.