diff --git a/_putchar.c b/_putchar.c new file mode 100644 index 0000000..b859fa9 --- /dev/null +++ b/_putchar.c @@ -0,0 +1,12 @@ +#include + +/** + * _putchar - writes the character c to stdout + * @c: The character to print + * Return: 1 on SUCCESS, + * -1 on error and errno is set appropriately. + */ +int _putchar(char c) +{ + return (write(1, &c, 1)); +}