Skip to content

zahraa-khalil/printf

Repository files navigation

0x11. C - printf

Requirements:

  • function that produces output according to a format.
  • format is a character string.
  • The format string is composed of zero or more directives.
  • Need to handle the following conversion specifiers: c, s, %
  • Returns: the number of characters printed (excluding the null byte used to end output to strings)

Structure:

  • printf takes one argument: a string of characters to be printed. 
  • This string is composed of characters, each of which is printed exactly as it appears
  • printf has two arguments. The first is a string: "I am %d years old\n" . The sec- ond is an integer,

Helper function: _putchar() print_number() -> (function prints an integer, without using long, arrays, or pointers) puts_recursion() -> (function that fills memory with a constant byte.)

local files and directories .gitignore; main.c ./git

manual: man_3_printf

About

0x11. C - printf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages