www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/04/01:35:12

Date: Sat, 04 Nov 2000 08:36:35 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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: <fiu60t0da045komjsr7g97covls5jhpjf4@4ax.com> (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> <qbFM5.9131$mv2 DOT 29116 AT news2-win DOT server DOT ntlworld DOT com> <7ot60too6v9k256nb2854jkq9mp62igco1 AT 4ax DOT com> <fiu60t0da045komjsr7g97covls5jhpjf4 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

> From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
> 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...

- Raw text -


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