/printf

Writing our own printf function.

Primary LanguageC

Prinitf

Description

We are supposed to write a printf function.

Tasks

Writing a function that produces output according to a format. The prototype is int _printf(const char *format, ...); Returns: the number of characters printed (excluding the null byte used to end output to strings). write output to stdout, the standard output stream. format is a character string. The format string is composed of zero or more directives. See man 3 printf for more detail. You need to handle the following conversion specifiers: c,s and %. You don’t have to reproduce the buffer handling of the C library printf function. You don’t have to handle the flag characters. You don’t have to handle field width. You don’t have to handle precision. You don’t have to handle the length modifiers.

File name for task 0 is : printno.c

Handle the following conversion specifiers: d and i. You don’t have to handle the flag characters. You don’t have to handle field width. You don’t have to handle precision. You don’t have to handle the length modifiers.

File name for task 1 is : print_char.c

Create a man pahe for your function.

File name for task 2 is : man_3_printf

The printf function project has been done by Pauline Ondiek and Peter Ogechi.