\30 is the escape sequence. To me this looks like the data is stpred as string 
representation by avoiding \0. I recently ran into a problem when I tried to 
store binary data as a char array when in my PDP generation tool (to be precise 
as String in Delphi). 

The problem I had was that my Binary data was stripped at the place a hex 0 (or 
\0 in c) occured in my binary array. I'm almost sure they've simply choosen \30 
instead of a \0 for a similar reason. 

Instead of copying the string you can walk through your \30 seperated data 
struct and collect store the values. I think you can do something like 

Char* strPos;
Char* backslashPos;

backslashPos = StrStr(YourBackslash30TerminatedValues, "\30");
someRecord = (String from your struct to backslashPos)
strPos = StrStr(YourBackslash30TerminatedValues, "\30");
strPos +=3;
(...)
(repeat this until yur reach the last record)

Dirty untested example, but I think you get it. 

Benjamin


Jamie McMullin wrote:

>Looking into the delimeter, \30, I have come figured out that it is ascii 
>character 24 and is represented as ^X 
>
>I have never come across this character before, I don't know why it is used 
>and how it corresponds to the keyboard or any C functions.
>
>Anyone else have any ideas?
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to