From: "Nick" Newsgroups: comp.os.msdos.djgpp Subject: From Bytes to Int and Char Lines: 21 X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Message-ID: Date: Fri, 13 Aug 1999 10:53:25 -0500 NNTP-Posting-Host: 209.184.56.83 X-Complaints-To: abuse AT swbell DOT net X-Trace: typhoon01.swbell.net 934559831 209.184.56.83 (Fri, 13 Aug 1999 08:57:11 PDT) NNTP-Posting-Date: Fri, 13 Aug 1999 08:57:11 PDT Organization: SBC Internet Services To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am trying to load some data from a files, the 6 and 7th bytes are an Integer and so are the 11th and 12th. How do I make them into an INT? This is what I used earlier char ver, type; int sz, tz; ver = file_buffer[0]; type = file_buffer[1]; . . . sz = file_buffer[6] + file_buffer[7]; is that right? TIA... -/\/ick