Using strchr to build a string
- by Roel
I have the following:
LPSTR email // Has data in it already
LPSTR index=strchr(email,'@');
Now I want to Insert into a new string:
LPSTR username
the part of "email" from the beginning of the string to "index".
For example:
email="[email protected]"
so username="roel" .
Is there a function to do it quick or do I need to build one?
Roel