/printf

[printf] project school 42. My mini implementation of printf in C.

Primary LanguageC

printf

This projects seeks to discover variadic functions in C in a particularly relevant context, as well as to learn about a great example of a basic “dispatcher” in C via the use of an array of function’s pointers. This projects represents a good exercise in programming, because of printf's versatility in C. The key to a successful ft_printf is a well-structured and good extensible code.

Conversions

Specifiers Description
%c Print a single character.
%s Print a string of characters
%p The void * pointer argument is printed in hexadecimal.
%d Print a decimal (base 10) number.
%i Print an integer in base 10.
%u Print an unsigned decimal (base 10) number.
%x Print a number in hexadecimal (base 16)
%% Print a percent sign '%'