Function strncat

Top 

 

Declaration:

void strncat(char dest[], char src[], int n, int dest_index=0, int src_index=0);

Description

The strncat function attaches the maximum of n characters from line scr to line dest and ends dest with the zero character. If there are less than n characters in line , then the whole line src together with the zero character will be copied.

Returned value

None.