The prototypes of all functions should be included in a header file called holberton.h
Header files should be include guarded
Github - There should be one project repository per group. If you clone/fork/whatever a project repository with the same name before the second deadline, you risk a 0% score.
Authorized functions and macros
write (man 2 write)
malloc (man 3 malloc)
free (man 3 free)
va_start (man 3 va_start)
va_end (man 3 va_end)
va_copy (man 3 va_copy)
va_arg (man 3 va_arg)
Examples
$ catmain.c#include<limits.h>#include<stdio.h>#include"holberton.h"/** * main - Entry point * * Return: Always 0 */intmain(void)
{
intlen;
intlen2;
unsigned intui;
void*addr;
len=_printf("Let us try to printf a simple sentence.\n");
len2=printf("Let us try to printf a simple sentence.\n");
ui= (unsigned int)INT_MAX+1024;
addr= (void*)0x7ffe637541f0;
_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("Len:[%d]\n", len);
printf("Len:[%d]\n", len2);
return (0);
}