Jul 5, 2012 #1 H hukiju Newbie level 6 Joined Jun 28, 2012 Messages 14 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,381 Hi, Anyone can teach me how to extract substring from a string in MPLAB C compiler? For example i have a string = 'ABCDEFG', I would like to extract the 'EFG' out from that string into another variable = 'EFG' Appreciate for any help given. Thanks!
Hi, Anyone can teach me how to extract substring from a string in MPLAB C compiler? For example i have a string = 'ABCDEFG', I would like to extract the 'EFG' out from that string into another variable = 'EFG' Appreciate for any help given. Thanks!
Jul 5, 2012 #2 J joseMiguel Member level 5 Joined Jan 10, 2011 Messages 86 Helped 10 Reputation 20 Reaction score 10 Trophy points 1,288 Location Montpellier FRANCE Activity points 1,967 Hi you need to use strcmp and strcpy C functions and play with pointer to string. JoseMiguel
Jul 5, 2012 #3 H hukiju Newbie level 6 Joined Jun 28, 2012 Messages 14 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,381 Thanks! I did it!