From: "David Whitcombe" Newsgroups: comp.os.msdos.djgpp Subject: Re: What's wrong? (C) Date: Sat, 10 Apr 1999 00:59:01 -0600 Organization: Rocky Mountain Internet - 1(800)-900-RMII Lines: 28 Message-ID: <7emt1u$fd3$1@news1.rmi.net> References: <7el4qv$gf6$1 AT news DOT koti DOT tpo DOT fi> NNTP-Posting-Host: ptp102.rof.net X-Trace: news1.rmi.net 923727742 15779 209.38.34.102 (10 Apr 1999 07:02:22 GMT) X-Complaints-To: abuse AT rmi DOT net NNTP-Posting-Date: 10 Apr 1999 07:02:22 GMT X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ilari Kaartinen wrote in message <7el4qv$gf6$1 AT news DOT koti DOT tpo DOT fi>... > >int rl_format (char *string,game_ *game,play_ *player) >{ > >int c1,c2; > >if(strcmp(string,__RL_GAME__)) > { > game->run=TRUE; <---------------Whoops! > printf("Game formatted!!!"); // debug info > return 0; > } > Are you calling rl_format() with an allocated pointer to type game_? Or is it just a pointer with no allocation? That'd make it choke. Someone else may see something different.