From: Brad Lowekamp Newsgroups: comp.os.msdos.djgpp Subject: spawn* error only with... Date: Wed, 08 Oct 1997 00:06:47 -0400 Organization: Erol's Internet Services Lines: 35 Message-ID: <343B06D7.B5ADBA47@erols.com> Reply-To: blowek AT erols DOT com NNTP-Posting-Host: col-as3s26.erols.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk This is the line that is giving me the problem: spawnl(P_WAIT, game[Gchoice].file, game[Gchoice].file,0); This is the structure: struct PathFileName { char name [18]; char path [65]; char file [33]; }; games is defined as: extern struct PathFileName game[MAX_GAMES]; Here is where it gets weird, with out a couple of lines like these span* will work fine: if (RPath(fp, tmp, &(game[i].name))!= 0) However when I redefined games to extern struct PathFileName game[MAX_GAMES]; and there for: if (RPath(fp, tmp, game[i]->name)!= 0) IT WORKED FINE?? Theres nothing wrong with the RPath() Function it gives the right values back! I'm still learning C and somethimes I get mixed up with pointers but I think everything is right. Anyone have any thoughts???