spacestrip
public c v1 · immutable// *pch is a pointer to the beginning of a stringwhile (*pch == ' ') pch++;char * ptemp = pch;while (*ptemp) ptemp++;while (*ptemp == ' ') ptemp--;*ptemp = 0;// *pch is a pointer to the beginning of a stringwhile (*pch == ' ') pch++;char * ptemp = pch;while (*ptemp) ptemp++;while (*ptemp == ' ') ptemp--;*ptemp = 0;