Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_memchr.c File Reference

The file containing the my_memchr function. More...

#include "mymemory.h"

Functions

void * my_memchr (const void *memory_block, int searched_char, size_t size)
 Copies bytes (size) from memory area (source) to memory area (destination)
 

Detailed Description

The file containing the my_memchr function.

Author
Nicolas TORO

Function Documentation

◆ my_memchr()

void * my_memchr ( const void * memory_block,
int searched_char,
size_t size )

Copies bytes (size) from memory area (source) to memory area (destination)

Parameters
destinationThe destination memory area
sourceThe source memory area
sizeThe number of bytes to copy
Returns
void * A pointer to the destination memory area
Author
Nicolas TORO