Skip to content

Drew-24/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The _printf function

Description

Our printf function works exactly the same as the printf function in the C programming language. Anything that works in the printf function found in the C programming will work here as well.

What is printf?

The printf function in C language: In C programming language, printf() function is used to print the (“character, string, float, integer, octal and hexadecimal values”) onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable.

Our function is successfully compiled and executed and should return the number of characters printed (excluding the null byte). Should this function fail at any time, this function will return -1 and (null) if the string argument is NULL

Prototype

image

  • Format is a string of characters. The format string is composed of zero or more directives
  • Return: The amount of characters printed excpet the null byte.
  • Write output to stdout, the standard output stream
  • For more info man_3_printf

Compilation

Our code is compiled like this.

image

Testing

main.c file test

We've made a main.c file were you are able to test the program to see if our custom printf function works! image

Output

Your should look like this after the compilation process is finished. image

Bugs

No bugs have beene found in our custom printf function as of this time.

About

This is a project for the Holberton School made by two upcoming software developers and authors of this README.me file.

The people in question:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages