> -----Original Message-----
> From: Richard Hartman
> Sent: Thursday, March 04, 1999 2:22 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Single Byte added to a string
>
>
> First, you must be certain that you have
> enough room to append a byte to the existing
> string w/o violating memory limits.
>
> Then, despite the two responses you've had
> showing creating a second 2-byte string &
> calling StrCat(), I'd suggest a more basic
> approach:
>
> /* Assuming "char LRC;" and "char *tempbuffer;" */
>
> int len = StrLen(tempbuffer); /* find the length */
> tempbuffer[len++] = = LRC; /* append char */
^^^---- typo, read '='
> tempbuffer[len] = '\0'; /* ensure termination */
>
>
> --
> -Richard M. Hartman
> [EMAIL PROTECTED]
>
> 186,000 mi./sec ... not just a good idea, it's the LAW!
>
>
> > -----Original Message-----
> > From: Webmaster [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 04, 1999 12:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: Single Byte added to a string
> >
> >
> > I have a function that returns 1 Byte that needs to be
> > StrCat'd on the end
> > of a character string. what is the best way to do this since
> > a byte cannot
> > be directly StrCat onto a string?
> >
> > J Jenkins
> >
> >
> > example:
> >
> > Byte LRC;
> >
> > LRC = makeLRCByte(CharPtr stringname);
> > StrCat(tempbuffer, LRC);
> >
> > very shoddy example, but it demonstrates what I need to
> accomplish....
> >
> > thanks all!
> >
> >
>