C++中怎么调用C函数

关于“C++中怎么调用C函数”的方法,之前有浏览过大牛的文章,貌似有好几种方法。
作为小白,this is my way.

这里写图片描述

/* File:    parse.h
 * Purpose: simple parser for data files, includeing args parsing
 */

#ifndef PARSE_H
#define PARSE_H


#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdbool.h> //zlb adds

//zlb marks typedef enum {false=0,true=1} bool ;

bool viParseArgs(int argc, char *argv[], char **filename);
bool viParseFile(FILE *f);


#ifdef __cplusplus
}
#endif

#endif

猜你喜欢

转载自blog.csdn.net/libing_zeng/article/details/80348885