Re: Accessing web with a C program
- From: "Lew Pitcher" <lpitcher@xxxxxxxxxxxx>
- Date: 8 Feb 2007 19:47:51 -0800
On Feb 8, 3:40 pm, Christopher Benson-Manica
<a...@xxxxxxxxxxxxxxxxxxx> wrote:
Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:
You /should/ be able to
FILE *web = fopen("http://google.com/","r");
and have a valid read connection to the named web page.
Should? I'm curious, what argues for this behavior? I certainly
wouldn't expect it from fopen() regardless of whether it was commonly
implemented or not.
What sort of behaviour would you expect from
FILE *somefile = fopen("C:\\ABC\\DEF\\GHI.J","r");
or
FILE *somefile = fopen("DDNAME:SYSIN,"r");
or
FILE *somefile = fopen("/a/b/c.d","r");
?
What's different (wrt how fopen() is defined in the standard, or how
it is used in real life) betwen these usages and the usage I suggest?
What is your objection to
FILE *web = fopen("http://google.com/","r");
and why don't you voice similar objections to
FILE *somefile = fopen("C:\\ABC\\DEF\\GHI.J","r");
or
FILE *somefile = fopen("DDNAME:SYSIN,"r");
?
.
- Follow-Ups:
- Re: Accessing web with a C program
- From: Christopher Benson-Manica
- Re: Accessing web with a C program
- From: Richard Bos
- Re: Accessing web with a C program
- References:
- Accessing web with a C program
- From: Neo
- Re: Accessing web with a C program
- From: Lew Pitcher
- Re: Accessing web with a C program
- From: Christopher Benson-Manica
- Accessing web with a C program
- Prev by Date: Re: Efficient trees
- Next by Date: Re: IS this a proper way of freeing memory with free()
- Previous by thread: Re: Accessing web with a C program
- Next by thread: Re: Accessing web with a C program
- Index(es):
Relevant Pages
|