[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: C++ and FTP



Per Anton R?nning wrote:
> Example:
> -------------
> char  curlcmd[100];
> char url[]="http://<url....>",char receiving_file[]="/<some
> directory>/recfile.html"
> //setup url command
>  sprintf(curlcmd,"curl %s > %s",url,receiving_file);
>  i=system(curlcmd);

Why would you use curl with system, when it has a well-documented API
(http://curl.haxx.se/libcurl/c/)?

Matt Flaschen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]