Strncat Function In C Code Example


Example: strncat c

#include <stdio.h> #include <string.h>  int main () {    char src[50], dest[50];     strcpy(src,  "This is source");    strcpy(dest, "This is destination");     strncat(dest, src, 15);     printf("Final destination string : |%s|", dest);        return(0); } output: Final destination string : |This is destinationThis is source|

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable