这个声明是什么意思?结构 Curl_easy *curl_easy_init(无效)

What does this declaration means? struct Curl_easy *curl_easy_init(void)

struct Curl_easy *curl_easy_init(void)
{
  CURLcode result;
  struct Curl_easy *data;

  /* Make sure we inited the global SSL stuff */
  if(!initialized) {
    result = curl_global_init(CURL_GLOBAL_DEFAULT);
    if(result) {
      /* something in the global init failed, return nothing */
      DEBUGF(fprintf(stderr, "Error: curl_global_init failed\n"));
      return NULL;
    }
  }

  /* We use curl_open() with undefined URL so far */
  result = Curl_open(&data);
  if(result) {
    DEBUGF(fprintf(stderr, "Error: Curl_open failed\n"));
    return NULL;
  }

  return data;
}

结构 Curl_easy *curl_easy_init(无效){}

这个声明是什么意思?我可以 google 关于这个有什么合适的关键字吗?我尝试了函数指针结构、结构指针等....

这个

struct Curl_easy * curl_easy_init(void)

是名称为 curl_easy_init 的函数的声明,该函数具有指针 return 类型 struct Curl_easy * 并且没有参数。

如果函数成功,return更新指针

struct Curl_easy *data;

在函数内声明。否则函数 returns NULL.