https://github.com/codewithmide/printf
https://github.com/codewithmide/printf
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithmide/printf
- Owner: codewithmide
- Created: 2022-04-16T20:27:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T21:58:53.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T13:23:43.477Z (about 1 year ago)
- Language: C
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# printf
The project consists of normal functions, derived functions a man page and a README.md file.
This produces output according to a format specifiers,as shown below.
_printf("Length:[%d, %i]\n", len, len);
printf("Length:[%d, %i]\n", len2, len2);
_printf("Negative:[%d]\n", -762534);
printf("Negative:[%d]\n", -762534);
_printf("Unsigned:[%u]\n", ui);
printf("Unsigned:[%u]\n", ui);
_printf("Unsigned octal:[%o]\n", ui);
printf("Unsigned octal:[%o]\n", ui);
_printf("Unsigned hexadecimal:[%x, %X]\n", ui, ui);
printf("Unsigned hexadecimal:[%x, %X]\n", ui, ui);
_printf("Character:[%c]\n", 'H');
printf("Character:[%c]\n", 'H');
_printf("String:[%s]\n", "I am a string !");
printf("String:[%s]\n", "I am a string !");
_printf("Address:[%p]\n", addr);
printf("Address:[%p]\n", addr);
len = _printf("Percent:[%%]\n");
len2 = printf("Percent:[%%]\n");
_printf("Len:[%d]\n", len);
printf("Len:[%d]\n", len2);
_printf("Unknown:[%r]\n");
It is developed by **Olumide Michael** and **Umar Amina Abdulmumin** from **ALX cohort 5.**