• 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
memcpy strange behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memcpy strange behavior


  • Subject: memcpy strange behavior
  • From: Nick Rogers <email@hidden>
  • Date: Thu, 20 Mar 2008 18:55:15 +0530

Hi
I'm using memcpy to copy a file's sector to my struct.
But its skipping one UInt16 in between and copying the next value in the struct's corresponding field.
I've checked the read sector and its correctly read. My struct is also in order.
Listing:
memcpy(&myStruct, sector, sizeof(myStruct));


What could be wrong here.
Any ideas?

Wishes,
Nick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: memcpy strange behavior
      • From: "Sherm Pendley" <email@hidden>
  • Prev by Date: Shared itunes movies on cocoa app
  • Next by Date: Re: disabling NSButton?
  • Previous by thread: Re: Custom Shaped Buttons
  • Next by thread: Re: memcpy strange behavior
  • Index(es):
    • Date
    • Thread