From: "Ilari Kaartinen" Newsgroups: comp.os.msdos.djgpp Subject: What's wrong? (C) Date: Fri, 9 Apr 1999 18:03:36 +0300 Organization: TPO Internet Lines: 38 Message-ID: <7el4qv$gf6$1@news.koti.tpo.fi> NNTP-Posting-Host: s.kurvi.phpoint.net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com #ifndef __ALL_DEFINED__ #define __RL_GAME__ "Rl:DaGame" #endif #include #include "game.h" #include "player.h" #ifndef TRUE #define TRUE 0 #define FALSE 1 #endif int rl_format (char *string,game_ *game,play_ *player) { int c1,c2; if(strcmp(string,__RL_GAME__)) { game->run=TRUE; printf("Game formatted!!!"); // debug info return 0; } return 1; // wrong usage } What's wrong in this piece of code. (When I compile it works fine, but if the line "game->run=TRUE;" is there, the program returns 255. (But still compiles ok) I'm using rhide. - Ilari