Skip to content

JABS081/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 23, 2022
6fb230b Â· Nov 23, 2022

History

7 Commits
Nov 23, 2022
Nov 22, 2022
Nov 19, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022

Repository files navigation

_PRINTF

SYNOPSIS

This is a simple implementation of printf function.

DESCRIPTION

The _printf The printf function prints formatted strings according to specifed formats listed below.

Interpreted sequences and available specifiers are:

  • \: backslash
  • \n: New line
  • \r: Carriage return
  • \t: Horizontal tab
  • %%: Prints a single %
  • %c: Prints a single character
  • %s: Prints a string of characters
  • %d: Prints integers
  • %i: Prints integers
  • %b: Prints the binary representation of an unsigned decimal.
  • %o: Prints the octal representation
  • %x: Prints hexadecimal values
  • %X: Prints hexadecimal values
  • %p: Prints addresses.
  • %u: Prints unsigned integers

Example


#include "main.h"

/**
 * main - Entry point
 *
 * Return: Always 0
 */
int main(void)
{
    _printf("%S\n", "Best\nSchool");
    return 0;
}
## 🤔🤔:
- [John Abass](https://www.github.com/JABS081)
- Alice Degwarhe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages