A formatted output conversion C program completed as part of the low-level
programming and algorithm track at Holberton School. The program is a pseudo-
recreation of the C standard library function, printf
.
created by Lee Muturi's Group and Olwale
The _printf
function was coded on an Ubuntu 14.04 LTS machine with gcc
To use the _printf
function, assuming the above dependencies have been installed,
compile all .c
files in the repository and include the header holberton.h
with
any main function.
Example main.c
:
#include "holberton.h"
int main(void)
{
_printf("Hello, World!");
return (0);
}
Compilation:
$ gcc *.c -o tester
Output:
$ ./tester
Hello, World!
$
Upon successful return, _printf
returns the number of characters printed
(excluding the terminating null byte used to end output to strings). If an
output error is encountered, the function returns -1
.
- Lee Muturi <derrosilee>
- Olwale Olwale <Olwale>