Mail Archives: djgpp/1999/08/11/13:35:19
Andrew Davidson wrote:
> typedef struct rom_double {
> char *file1,*file2;
> int length;
> }
>
> typedef struct rom_triple {
> char *file1,*file2,*file3;
> int length;
> };
>
> struct rom_map {
> rom_double *program_roms;
> rom_triple *tile_roms;
> rom_double *sprite_roms;
> };
>
> As an example of a simple predefined structure:
>
> struct rom_map game1_map = {
> { /* program roms */
> {"progrom1a","progrom1b",65536},
> {"progrom2a","progrom2b",65536},
> {NULL, NULL, 0}
> },
>
The problem arrises because your members of the rom_map struct are
POINTERS and your initializing them with values, not addresses.
--
-Rolf Campbell (39)3-6318
- Raw text -