curl-library
Man page nit (was: FTP transfers...)
From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 14 Apr 2009 18:29:04 -0500
Date: Tue, 14 Apr 2009 18:29:04 -0500
On Tue, Apr 14, 2009, Daniel Stenberg wrote:
> On Tue, 14 Apr 2009, Angus March wrote:
> > char c[1000];
> > verify(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, c) == CURLE_OK);
> This code is plain wrong. Re-read the man page!
The man page's wording of:
" a pointer to a char* "
always seemed easy to misread for me, like it is mixing
plain English with C code - if you explicitly refer to
a pointer as a "pointer" then surely the asterisk must
refer to a footnote or something?
Maybe it would be clearer to call it:
" a pointer to a char pointer "
or:
" a char** "
- Jeff
Received on 2009-04-15