delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/24/10:09:49

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ? Functions recieving strings?
Date: Mon, 23 Mar 1998 20:50:42 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 26
Message-ID: <35171172.3089@cs.com>
References: <0p5jA0_00YUt1EQ0c0 AT andrew DOT cmu DOT edu>
NNTP-Posting-Host: ppp239.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

James W Sager Iii wrote:
> 

[snip]

> Now that isn't the exact example. The code I have is too complex to post
> as its over 100k in length.  I thought it was just a problem with
> turbo c, but I have hit these errors with Djgpp too.  I'm exasperated
> as I just want my functions to recieve the correct values so I can
> finish my game in a few days...  My only guess is that there is a
> pointer error or something elsewhere in the code.  Any suggestions
> how I would go about tracking down the problem would be more than
> appreciated.

It would help if you posted some exact code that failed to work.  The
above example won't compile because you use 'mystring' instead of
'my_string' in the functions.  With that fixed, it works perfectly for
me.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Democracy is based on the assumption|
|       aka Fighteer I       | that a million men are wiser than one|
|   mailto:fighteer AT cs DOT com   | man.  How's that again?  I missed    |
| http://www.cs.com/fighteer | something."    - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


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