Files
printf/puts.c
2023-12-19 15:31:49 +02:00

27 lines
456 B
C

#include "main.h"
#include <unistd.h>
/**
* _puts - splurges whatever is in buffer
*
* @str: pointers to "buffer" or string head
*
* Return: written bytes
*/
int _puts(char *str)
{
return (write(1, str, _strlen(str)));
}
/**
* _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));
}