1 2 3 4 5 6 7 8 9 10 11
#include<stdio.h> int main() { char dst[50]; char str[50] = "Wel %s"; snprintf(dst,50,str,"Come"); printf("%s",dst); snprintf(dst,50,"%s*",dst); printf("%s",dst); }
1
Wel Come*