[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Stupid question
- Subject: [ale] Stupid question
- From: cfowler at outpostsentinel.com (Christopher Fowler)
- Date: Mon, 29 Oct 2001 17:55:13 -0500
When I write the folling:
int c ='A'
to a file, the file is 4 bytes in size. In realsity that value could be
stored in one byte.
When I look at the file, it looks like this:
A NULL NULL NULL
using octal dump with the ascii option. I'm trying to build a config file
that is created from
a sturcture of values. The structure is very big. My calculations of
locations were so wrong due to
ths size of an interger being 4 bytes on my machine. Is there a way to make
the interger actually
1 byte so that the only thing in the file is A.
Thanks,
Chris Fowler
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.