Link to home
Start Free TrialLog in
Avatar of jim_welch_se
jim_welch_se

asked on

Remove a token from a string

Hello Everyone,

I am wondering if anyone has a C or C++(non MFC) code that can find and remove a string from another string.

For example:

String= "A B C D /ZZ E F G H"
Token="/ZZ"
and the return would be
Returnstring="A B C D E F G H"

Any help you can provide would be greatly appreciated.

Best Regards,
-Jim

ASKER CERTIFIED SOLUTION
Avatar of sgvill
sgvill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sgvill
sgvill

oh, you will also need to include

#include <string.h>