首页 > 解决方案 > C中的外部结构声明

问题描述

我对C相当陌生,因此有人可以帮我理解下面的结构声明吗?

extern struct server_module* module_open (const char* module_path);

根据我的理解,module_open是指向的指针struct server_module,但是,不理解语句的最后一部分,即(const char* module_path)

标签: c

解决方案


extern struct server_module* module_open (const char* module_path);声明module_open为一个函数,它接受一个名为module_pathtype的参数const char *并返回一个struct server-module *.


推荐阅读