[ create a new paste ] login | about

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

C, pasted on May 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string.h>
#include <stdio.h>

int main()
{
char * string = "Simulated Annealing = 12847369";
char * value = strchr(string, '=');

*(value ++ ) = 0;


printf("%s ==== %s", value, string);
printf("xxx");
return 0;
}


Output:
1
 12847369 ==== Simulated Annealing = 12847369xxx


Create a new paste based on this one


Comments: