Skip to content

Mike Cohen

iOS and Mac developer

  • About Me
  • Blog

Porting to Intel

October 7, 2005 by Mike Cohen

An IP address is not a long int – it’s 4 bytes. Doing something like this is bad:

sprintf(buf,”%ld.%ld.%ld.%ld”, (ip>>24) & 255, (ip>>16) & 255, (ip>> 8 ) & 255, ip & 255);

Share this:

  • Facebook
  • LinkedIn
  • Mastodon
Categories Programming Tags Mac x86
Knoppix on Mac X86
You too can have a lucrative government job

Recent Posts

  • Bluesky is now open for everyone
  • Note
  • Happy Birthday, Macintosh!
  • Published: Song of the Day: Lucky Number
  • Let’s try this again

Medium Posts

  • Jimi Mbaye (1957–2025)
  • What have we done?
  • Bluesky added video and reached 10M users
  • Bluesky now has DMs
  • Concert review: Brigitte Calls Me Baby at Cafe Du Nord
  • Threads has joined the Fediverse
© 2025 Mike Cohen • Built with GeneratePress