Objective
Implement a function that fills the first n bytes of a memory area with a single byte value, then returns the area's address.
Steps
$ memset(buf, 'A', 5) // then buf[5]='\0'; print buf
AAAAA
$ memset("commit", '0', 3) // first 3 bytes only
000mit
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Objective
Implement a function that fills the first n bytes of a memory area with a single byte value, then returns the area's address.
Steps
$ memset(buf, 'A', 5) // then buf[5]='\0'; print buf
AAAAA
$ memset("commit", '0', 3) // first 3 bytes only
000mit
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Tests
Run the tests to grade your code