-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path_putchar.c
executable file
·23 lines (16 loc) · 1.52 KB
/
_putchar.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <unistd.h>
/**
*
* * _putchar - writes the character c to stdout
*
* * @c: The character to print
*
* * Return: On success 1.
*
* * On error, -1 is returned, and error is set appropriately.
*
* */
int _putchar(char c)
{
return (write(1, &c, 1));
}