Skip navigation.
 
mlRe: How do I get around this?
FROM : Kevin Ballard
DATE : Sun Nov 28 08:23:29 2004

Here's your problem. You're missing the comma between &pkt[UID] and 4.
No wonder you're getting a parse error.

On Nov 28, 2004, at 1:56 AM, John Draper wrote:

> I have the following definitions....
>
> #import <strings.h>
>
>
>  u_char pkt[95];
>  u_long a_long;
>
>
>
>  bzero(&pkt, 95);
>  a_long = 23L;
>  bcopy(&a_long, &pkt[UID] 4);    <---- This fails to compile...
>
> I get:  error - parse error before numeric constant?
> What in tarnation does THIS mean...  how can I copy the contents of a
> local
> variable like "a_long" into a specific byte cell in the 'pkt' array of
> "u_char"


--
Kevin Ballard
<email_removed>
http://www.tildesoft.com
http://kevin.sb.org

Related mailsAuthorDate
mlHow do I get around this? John Draper Nov 28, 07:56
mlRe: How do I get around this? Kevin Ballard Nov 28, 08:23
mlRe: How do I get around this? John Draper Nov 29, 03:41