honor restored

This commit is contained in:
2023-12-19 15:31:49 +02:00
parent 07afea3a7b
commit 5b1fface91
29 changed files with 76 additions and 779 deletions

26
puts.c Normal file
View File

@@ -0,0 +1,26 @@
#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));
}