Date: Sat, 04 Nov 2000 08:36:35 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <9003-Sat04Nov2000083635+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h In-reply-to: (message from Damian Yerrick on Sat, 04 Nov 2000 02:54:06 GMT) Subject: Re: Can I query the WWW from a DJGPP program? References: <8tu6jd$7o9$1 AT news DOT stortek DOT com> <9ld50t0bdc1j4447j7jc73k76u0pq3dg8g AT 4ax DOT com> <7ot60too6v9k256nb2854jkq9mp62igco1 AT 4ax DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Damian Yerrick > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 04 Nov 2000 02:54:06 GMT > > >int pull_html(const char *url) > >{ > > char url[], cmdline[256]; > > sprintf(cmdline, "lynx -source %s", url); > > system("lynx -source foo.html > temp.tmp") > >} > > oops... should have been > > > return system("lynx -source foo.html > temp.tmp"); And that cmdline[] variable seems redundant, since you don't use the results of sprintf...