brain dying pls

This commit is contained in:
2023-08-22 13:26:33 +03:00
parent f08b2ca361
commit a36de7eac1
4 changed files with 50 additions and 13 deletions

22
memset.c Normal file
View File

@@ -0,0 +1,22 @@
#include "main.h"
/**
* _memset - sets values of bytes to specific value
*
* @adr: head address
* @n: number of bytes
*
* Return: pointer to place
*/
char* _memset(char *str, int bval)
{
int i;
for (i = 0; i < _strlen(str); i++)
{
*(str + i) = bval;
}
return (str);
}