int i;
char * string = "1024";
i = atoi(string);
printf("%d", i);