• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get around this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get around this?


  • Subject: Re: How do I get around this?
  • From: Kevin Ballard <email@hidden>
  • Date: Sun, 28 Nov 2004 02:23:29 -0500

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@hidden http://www.tildesoft.com http://kevin.sb.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How do I get around this? (From: John Draper <email@hidden>)

  • Prev by Date: How do I get around this?
  • Next by Date: Re: Nib files and outlets
  • Previous by thread: How do I get around this?
  • Next by thread: Re: How do I get around this?
  • Index(es):
    • Date
    • Thread