Skip to content

Alx Project with Ajileye Oluwaseun on building a printf function

Notifications You must be signed in to change notification settings

O-Ifeoluwa/Printf

Repository files navigation

Printf function

Alx Project with Ajileye Oluwaseun on building a printf function (Cohort 5) This project consists of normal functions, derived functions, 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"); Ajileye oluwaseun and Osatuyi favor

About

Alx Project with Ajileye Oluwaseun on building a printf function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages