I have a char pointer here,
char* buffer = (char*)malloc(sizeof(char*));
*buffer = 1;
buffer++;
*buffer = 2;
so by doing this, i actually have the pointer pointing to "1" and "2"
what i actually want is the number, 12.
anyone knows how can i get the char pointer's data "1" and "2" converted into the number 12 in an integer variable?