[ create a new paste ] login | about

Link: http://codepad.org/ACvWNqKA    [ raw code | output | fork ]

C, pasted on Aug 10:
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);
}


Output:
1
Wel Come*


Create a new paste based on this one


Comments: