Is there a way to cast a the contents of a char* buffer into an int?
char buf; int i; strcpy(buf, "foo"); i = atoi(buf);
WOW!! atoi, i totally spaced on that. Thanks alot (im not being sarcastice, i just feel like a moron) Thanks.
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.