Corewar documentation 1.0.0
|
The file containing the my_strndup function. More...
#include "my.h"
Functions | |
char * | my_strndup (char const *src, int n) |
Duplicates a string (src) with a defined size (n) and returns the new string. | |
The file containing the my_strndup function.
char * my_strndup | ( | const char * | src, |
int | n ) |
Duplicates a string (src) with a defined size (n) and returns the new string.
src | The string to duplicate |
n | The size of the string |