Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caglakahriman/c-printf
Wrote C's built-in printf function as ft_printf
https://github.com/caglakahriman/c-printf
Last synced: 5 days ago
JSON representation
Wrote C's built-in printf function as ft_printf
- Host: GitHub
- URL: https://github.com/caglakahriman/c-printf
- Owner: caglakahriman
- Created: 2022-12-26T11:22:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T13:20:44.000Z (almost 2 years ago)
- Last Synced: 2023-09-18T13:27:28.116Z (about 1 year ago)
- Language: C
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C-PRINTF
Wrote C's built-in printf function as ft_printfIn 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.
Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for double and %x for hexadecimal variable.
To generate a newline,we use “\n” in C printf() statement.On this project I,
- handle file descriptors to output characters,
- handle decimal to hexadecimal conversion,
- handle [variadic functions](https://www.geeksforgeeks.org/variadic-functions-in-c/)