Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nklmantey/printf
https://github.com/nklmantey/printf
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nklmantey/printf
- Owner: nklmantey
- Created: 2022-08-07T16:46:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-10T03:52:14.000Z (over 2 years ago)
- Last Synced: 2023-03-05T15:57:42.881Z (almost 2 years ago)
- Language: C
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple implementation of printf function that formats and prints data
The _printf() function produces output according to a format which is described below. This function write its output to the stdout, the standard output stream. Returns the count of printed characters when the function is successful and -1 when the function fails.
The available convertion specifiers are:
%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.
%u: Prints unsigned integers
%x: Prints the hexadecial representation of an unsigned decimal in lowercase letters
%X:Prints the hexadecial representation of an unsigned decimal in uppercase letters
%r: Prints a reversed string
%R: Prints the Rot13 interpretation of a string