My C is a bit rusty (my primary experience is Cobol based) I was
wondering if anyone can help me out here. I have a data string that I want
to move into individual fields of a structure... How can I do this?
Also, how do I define the field in my structure if I want a numeric
field
Hi,
There're a lot of ways to do this ...
If you know the lenght of all the parts you can use the strncpy (ANSI C)
function (or StrNCopy if you are using the Palm SDK. Both functions copy
N characters from the source string to the destination. To set the start
point of the source string, you can
Thanks, I'll give it a go!
Chris
"Fernando Rodriguez Sela" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> There're a lot of ways to do this ...
>
> If you know the lenght of all the parts you can use the strncpy (ANSI C)
> function (or StrNCopy if you are using the Palm
On Mon, May 03, 2004 at 10:55:40AM -0400, Chris Hall wrote:
Chris Hall wrote:
>Char str1[78] = "A12Company Name Address Field
>Y030200"
>
>struct CustomerFF
>{
> Char Action[1];
> Char CustNo [5];
> Char CustLoc[5];
> Char CustName[30];
> Char Addr