Trimming buffer



Hi,

I've got the followin problem: In my application I receive a pointer (BYTE*)
to a buffer that contains data. It is possible that the data is lead by any
number of whitespace characters, like this " x8d9s8df8s.....". How can I
delete these whitespace characters?
By the way, the following data is random.

Greetings,

Peter
.