extern "C" esp_err_t nvs_flash_erase(void),是什么意思?

feng_esp32_2021
Posts: 26
Joined: Thu Nov 18, 2021 12:22 am

extern "C" esp_err_t nvs_flash_erase(void),是什么意思?

Postby feng_esp32_2021 » Thu Nov 25, 2021 1:57 am

我看程序中有 extern "C" esp_err_t nvs_flash_erase(void) ,这个语句 中的 “C” 是什么意思?谢谢!

feng_esp32_2021
Posts: 26
Joined: Thu Nov 18, 2021 12:22 am

Re: extern "C" esp_err_t nvs_flash_erase(void),是什么意思?

Postby feng_esp32_2021 » Thu Nov 25, 2021 2:01 am

有知道的 请告诉我谢谢

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: extern "C" esp_err_t nvs_flash_erase(void),是什么意思?

Postby ESP_ICY » Fri Nov 26, 2021 2:35 am

这个C表示一个C++的项目需要调用C语言相关代码,这个是C语言相关的,想进一步了解可以自行网上搜索

Who is online

Users browsing this forum: No registered users and 79 guests