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

The file containing the my_strncat function. More...

#include "my.h"

Functions

char * my_strncat (char *dest, char const *src, int n)
 Concatenates two strings (dest) and (src) with a defined size (nb)
 

Detailed Description

The file containing the my_strncat function.

Author
Nicolas TORO

Function Documentation

◆ my_strncat()

char * my_strncat ( char * dest,
char const * src,
int nb )

Concatenates two strings (dest) and (src) with a defined size (nb)

Note
The destination string must be allocated and have enough space
Parameters
destThe destination string
srcThe source string
nbThe size of the string
Returns
char* The destination string
Author
Nicolas TORO