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

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
* @bval: number of bytes
*
* Return: pointer to place
*/
char *_memset(char *adr, int bval)
{
int i;
for (i = 0; i < _strlen(adr); i++)
{
*(adr + i) = bval;
}
return (adr);
}