Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* GetNumFromStr(char* tempBuff, int strSize, int i)
- {
- static char numFromStr[1024];
- for (int i1 = i; ; i1++)
- {
- if (!isdigit(tempBuff[i1]))
- {
- return 0;
- }
- static char singleNum[1024];
- sprintf(singleNum, "%c", tempBuff[i1]);
- strcat(numFromStr, singleNum);
- if (!isdigit(tempBuff[i1 + 1]))
- {
- return numFromStr;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement