Skip to content

S1even/holbertonschool-printf

Repository files navigation

images (1)

Presentation project

The goal of this collaboration project we are created a function called _printf
The function _printf is used to print a character string and returns it to the terminal output

Format Specifiers

The format specifiers for this project

Prototype : int _printf(const char *format, ...);

c : character
s : string
% : percent sign
d : decimal number 
i : integer

Compilation

gcc -Wall -Wextra -Werror -pedantic -std=gnu89 -Wno-format *.c

Requirements

All the files will be compiled on Ubuntu 20.04 LTS using gcc
All files that contain code use the Betty style

The header files : Main.h
Allowed editors  : vi, vim, emacs

The examples

String

#include "main.h"

int main(void)
{
      _printf("Hello, %s!\n", "everyone")
      return (0)
}

output

Hello, everyone

Integer

#include "main.h"

int main(void)
{
      _printf("Number: %d\n", 24)
      return (0)
}

output

Number: 24

Character

#include "main.h"

int main(void)
{
      _printf("The character is: %c\n", 'A')
      return (0)
}

Output

The character is: A

Flowchart

images (1)

Man page

You can check the Man page of the function here.

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages