On Mon, May 03, 2004 at 10:55:40AM -0400, Chris Hall wrote:
Chris Hall wrote:
>Char str1[78] = "A1111122222Company Name Address Field
>Y030200"
>
>struct CustomerFF
>{
> Char Action[1];
> Char CustNo [5];
> Char CustLoc[5];
> Char CustName[30];
> Char Addr[30];
> Char AuthF[1];
> Char PriceNo[2];
> Char DiscPct[4]; ?????
>} CustomerFF;
Keep in mind that if the customer number is 5 characters long in the
string you want to allocate 6 characters in the data structure (5 for
the number, one for the trailing NUL). Otherwise, you won't be able to
use any of the Str* functions.
--
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
Dave is currently listening to John Doe - My Offering (Meet John Doe)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/