double bias;
};
+ static int character_code;
+static char *encoding;
+
static void read_header (struct sfm_reader *);
static void read_variable_record (struct sfm_reader *);
static void read_value_label_record (struct sfm_reader *);
(long long int) ftello (r.file),
(long long int) ftello (r.file) + 4);
+ printf ("Character Encoding: %s (%d)\n", encoding ? encoding : "none", character_code);
if (r.compression == COMP_SIMPLE)
{
if (max_cases > 0)
int float_representation = read_int (r);
int compression_code = read_int (r);
int integer_representation = read_int (r);
- int character_code = read_int (r);
+ character_code = read_int (r);
printf ("%08llx: machine integer info\n", offset);
if (size != 4 || count != 8)
static void
read_character_encoding (struct sfm_reader *r, size_t size, size_t count)
{
- long long int posn = ftello (r->file);
- char *encoding = xcalloc (size, count + 1);
+ encoding = xcalloc (size, count + 1);
read_string (r, encoding, count + 1);
- printf ("%08llx: Character Encoding: %s\n", posn, encoding);
-
- free (encoding);
}
static void