Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to manipulate a string in microcontroller

Status
Not open for further replies.

D_A_V_E

Member level 5
Joined
Nov 13, 2007
Messages
91
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,736
string manipulation

Hi guys,

I would like to know how to manipulate a string in microcontroller, what would be the best way. I am receiving a string of characters and the part that is from interest is for example character 12 to 14 ro just character 15. How could i best isolate these ones?

Please give me some direction with this one

Yours,

D
 

Re: string manipulation

you would get a lot more help if you explain what microcdontroller you are using, and the language you are programming in (asm, c)

the best way would be to buffer the string in ram, then check each byte.
 

string manipulation

I am using a pic24 and i am programming C.

thank you for the reply
 

string manipulation

use pointer to manuplate them........ it will give u more contol it is more faster
btw compiller put '0' after every string by it self to indicate string is end.
 

Re: string manipulation

Thank very much for your help

So how should i filter the 5,6,7 character from a string that has about 20.

Yours,

D
 

Re: string manipulation

Include <string.h> and use the functions that come with the standard c libraries.
 

Re: string manipulation

Ok Done.

Thank you for the great help in this matter
 

Re: string manipulation

D_A_V_E said:
Ok Done.

Thank you for the great help in this matter
ts work fine if you are dealing with limmited length of string, and data is not manuplating in multiple fuction but for the other case u have to use pointer
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top