inline decl, memset fix(??)

This commit is contained in:
2023-08-22 17:50:03 +03:00
parent 05df0a9cc4
commit ae280081e0
2 changed files with 10 additions and 11 deletions

View File

@@ -4,19 +4,19 @@
* _memset - sets values of bytes to specific value
*
* @adr: head address
* @n: number of bytes
* @bval: number of bytes
*
* Return: pointer to place
*/
char* _memset(char *str, int bval)
char *_memset(char *adr, int bval)
{
int i;
for (i = 0; i < _strlen(str); i++)
for (i = 0; i < _strlen(adr); i++)
{
*(str + i) = bval;
*(adr + i) = bval;
}
return (str);
return (adr);
}