diff --git a/0x0F-function_pointers/_putchar.c b/0x0F-function_pointers/_putchar.c new file mode 100755 index 0000000..e7b796c --- /dev/null +++ b/0x0F-function_pointers/_putchar.c @@ -0,0 +1,13 @@ +#include + +/** + * _putchar - writes the character c to stdout + * @c: The character to print + * + * Return: On success 1. + * On error, -1 is returned, and errno is set appropriately. + */ +int _putchar(char c) +{ + return (write(1, &c, 1)); +}