Code:
// Since everyones having a go, heres mine.
// It does not require tempory storage, and it modifies the original string.
void deblank(char* str)
{
int p = 0;
while (*str != 0) {
if (*str = ' ') {
++p;
}
*str = str[p];
++str;
}
}
// clinux_rulz aka cj