Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emmo00/printf
https://github.com/emmo00/printf
Last synced: about 15 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmo00/printf
- Owner: Emmo00
- Created: 2023-01-21T16:10:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T16:27:53.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T17:20:37.769Z (almost 2 years ago)
- Language: C
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ALX Team project
*by Obiora Daniel and Nwafor Emmanuel*
- printf \
Fuction that prints formated string to stdout
## AboutPrototype: ``int _printf(const char *format, ...);``
Write output to stdout, the standard output stream.
Returns: the number of characters printed (excluding the null byte used to end output to strings)
It can handle the following Specifiers:
- c
- s
- %
- d
- i## How to Compile
Add a file ``main.c`` to the folder that has the main fuction that calls our function ``_printf(char *format, ...)``
Run the following command in your terminal:
``
$ gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c``Then run the output ``a.out`` file