delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/24/21:16:23

From: astrzelc AT yahoo DOT com (andrzej)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc 3.1 - space characters in file name
Date: 24 Jun 2002 17:56:21 -0700
Organization: http://groups.google.com/
Lines: 15
Message-ID: <46552825.0206241656.3a550b3b@posting.google.com>
References: <46552825 DOT 0206230356 DOT 22493c14 AT posting DOT google DOT com> <3D15C69C DOT 32B1B70D AT phekda DOT freeserve DOT co DOT uk>
NNTP-Posting-Host: 209.250.153.18
X-Trace: posting.google.com 1024966582 24178 127.0.0.1 (25 Jun 2002 00:56:22 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 25 Jun 2002 00:56:22 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks, Richard :)

You are right, in the mean time I found the error in my code:

Instead of 

..strcpy(line,"this is a file");
f = fopen (line,"rb");

I had

..strcpy(line,"\"this is a file\"");
f = fopen(line,"rb");

Andrzej :)

- Raw text -


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