www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/10/10:41:45

From: XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What's wrong? (C)
Date: Sat, 10 Apr 1999 14:05:17 GMT
Organization: Telefonica Transmision de Datos
Lines: 29
Message-ID: <370f5a2d.8297056@noticias.iies.es>
References: <7el4qv$gf6$1 AT news DOT koti DOT tpo DOT fi> <7emt1u$fd3$1 AT news1 DOT rmi DOT net> <7ener4$b2r$1 AT news DOT koti DOT tpo DOT fi>
NNTP-Posting-Host: iies216.iies.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

El día Sat, 10 Apr 1999 15:06:44 +0300, "Ilari Kaartinen"
<ililka AT mantta DOT fi> escribió:

>I don't understand what you are saying, but i used rl_format() like this.
>(and that "if(strcmp(string,__RL_GAME__))" was a mistake, uups. It should be
>"if(strcmp(string,__RL_GAME__)==0)", but still..)
>------
>#include "rl.h"
>int main (void)
>{
>
>TXT_BUFFER *screen; // I use Wazoo
>opti_ options;
>game_ game;
>play_ player;
>
>rl_format(__RL_GAME__,game,player);

But rl_format is expecting _pointers_ to variables of type game_ and
play_, and here you're passing these variables directly. You should do
something like

rl_format(__RL_GAME__, &game, &player);

Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019