Convert string of int to a long

  • axxa90
  • Born
  • Born
  • axxa90
  • Posts: 1

Post 3+ Months Ago

I am starting with C and I ran into a problem. I am trying to convert a string of ints in hexadecimals to a long int. For example int[3] = {0x1c, 0x12, 0xab} into a long int 0x1c12ab. I was thinking of converting the array into a string and thrn into a long but I am not sure hoe to do that. Any ideas?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6250
  • Loc: Seattle, WA

Post 3+ Months Ago

Do you have any code so far?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 166 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.