Skip to content

Recreated a widely used standard library function; printf.

Notifications You must be signed in to change notification settings

breebrowder/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintFUN Group Project- Cohort 14

Project

  1. Printf

Description

This is a recreation of a popular C language function that can do formatted printing to standard output. Tasked to us by Holberton School, this emulation of the already popular function will provide us with a better understanding of the inner workings of the printf function.

image joke printf

Compilation

  • Our code will be compiled this way:
$  gcc -Wall -Werror -Wextra -pedantic *.c

Authorized functions and macros

  • write (man 2 write)
  • malloc (man 3 malloc)
  • free (man 3 free)
  • va_start (man 3 va_start)
  • va_end (man 3 va_end)
  • va_copy (man 3 va_copy)
  • va_arg (man 3 va_arg)

Formatting

Conversion Specifiers
%c prints a character
%s prints a string
%% prints a percent
%d prints a decimal integer assumes base 10
%i prints a decimal integer detects base automatically

Resources

Secrets of Printf

Contributors

  1. Bree Browder - GitHub
  2. Brian Kong - GitHub

About the Developer 💬

Bree Browder

Bree is known for her creativity, organization, and self awareness. Advances in technology have played an integral part in her life. As an empathy-driven problem solver, Bree wants to be at the forefront of design for products, and to continuously design with others in mind, especially those who tend to be marginalized or forgotten.

Follow Me

Email Me

📩: browder.bree@gmail.com

About

Recreated a widely used standard library function; printf.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages