Created
December 4, 2014 22:44
-
-
Save Seth-Johnson/704f388c957defebae30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void convertBuffToInt(wchar_t buffer[]) { | |
int temp = 0; | |
for (int i = 0; i < sizeof(buffer) / sizeof(buffer[0]); i++) { | |
if (buffer[i] == '\0') { | |
break; | |
} | |
temp = temp * 10 + ((int)buffer[i] - 48); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment