之前捣鼓了一番在电脑上安装好了最先的curl库,今天迫不及待的用了一波,实操感觉不错!下面看demon
安装过程:curl下载安装教程
一、程序demon:
#include <curl/curl.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
char DOWNLOAD_PATH[300];
int download_function(char *url, char *down_path)
{
if ((NULL == url) || (NULL == down_path)) {
printf("param_error");
return -1;