title: How to convert a 48-bit byte array into an 64-bit integer in C?
body: <p>I have an unsigned char array whose size is 6. The content of the byte array is an integer (4096*number of seconds since Unix Time). I know that the byte array is big-endian.</p>
  
  <p>Is there a library function in C that I can use to convert this byte array into int_64 or do I have to do it manually?</p>
  
  <p>Thanks!</p>
  
  <p>PS: just in case you need more information, yes, I am trying to parse an Unix timestamp. <a href="http://www.ccnx.org/releases/latest/doc/technical/Timestamp.html" rel="nofollow">Here</a> is the format specification of the timestamp that I dealing with.</p>