i have a string stored in a buffer. i need to trim the first letter from the string so that when i access the buffer that first letter will be gone. the string changes constantly but i still need only the first letter trimed before it changes again.
thanks
smurf
The lstrcpy function copies a string to a buffer.
LPTSTR lstrcpy(
LPTSTR lpString1, // address of buffer
LPCTSTR lpString2 // address of string to copy
);
try that... address of string to copy + 1smurf,
If you need to read it from the buffer without making a copy of
the string, just increment the pointer to the string by 1 byte,
that should do the job.
Regards,
hutch@pbq.com.au
thanks NOP that works well.
thanks Hutch your method is a better solution for my situation.
smurf
This message was edited by smurf, on 6/6/2001 8:04:50 PM