You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
322 B

/**
* Copy `num_bytes` many bytes from the `source` memory to the
* `destination` memory.
*
* @param source
* @param destination
* @param num_bytes
*/
void mem_copy(char* source, char* destination, int num_bytes) {
for ( int i = 0; i < num_bytes; i += 1 ) {
*(destination + i) = *(source + i);
}
}