Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Deleting characters from C string
- void convertStr(char *analysisBuffer)
- {
- char *exp;
- if( (exp = strstr(analysisBuffer,"x+"))!=NULL||(exp = strstr(analysisBuffer,"X+"))!= NULL)
- {
- exp += 2;
- char * zeroIt = exp;
- while(*zeroIt == '0')
- ++zeroIt;
- unsigned int x = exp - analysisBuffer;
- analysisBuffer[x] = '