Demiso1 / printf

create the printf function in c with Hugo and me.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My printf in c

printf logo

Description

This repository contains a version of printf in c language, which maintains the main functions of this basic function. This project is a project requested by Holberton School

Prerequisites ๐Ÿ“‹

you must have the gcc compiler and a 64-bit system installed for greater reliability:

In linux:

$ sudo apt install gcc

$ gcc --version

gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

In windows:

Follow the platzi tutorial

Options ๐Ÿ”Ž

The following conversion operators are available:

  • s = strings

  • c = characters

  • i = integers

  • d = decimals

  • % = percentage signs

  • b = binary

Running the tests โš™๏ธ

When you have already cloned the repository, create this main.c:

main.c

And run this command:

$ gcc -Wall -Wextra -Werror -pedantic -Wno-format *.c

and you will see all the possibilities you can do with _printf.

Example ๐Ÿ’ฅ

_printf("%s %s %s\\n", "hey", "i", "work!");

Output : "hey i work!"

The pseudocode ๐Ÿ“

Flowchart

printf pse


Version 1

printf v1


Version 2

printf v2

Authors ยฉ๏ธ

About

create the printf function in c with Hugo and me.


Languages

Language:C 100.0%