if idea no work, you copy errytang))) xd

This commit is contained in:
2023-08-22 12:20:43 +03:00
parent 504376d3d0
commit f08b2ca361
2 changed files with 16 additions and 0 deletions

1
main.h
View File

@@ -5,5 +5,6 @@ int _contains(const char *str, char c);
int _strlen(const char *str);
char *_strcpy(char *dest, char *src);
char *append(char *str, char c);
void _puts(char *str);
#endif

15
puts.c Normal file
View File

@@ -0,0 +1,15 @@
#include "main.h"
#include <unistd.h>
/**
* _puts - splurges whatever is in buffer
*
* @str: pointers to "buffer" or string head
*
* Return: Naught
*/
void _puts(char *str)
{
write(1, str, _strlen(str));
}