规范模块目录和第三方依赖结构

This commit is contained in:
zhangshun
2026-06-01 16:57:39 +08:00
parent e8e485b115
commit c2ce29d874
1758 changed files with 187 additions and 102 deletions

30
include/math_utils.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef MATH_UTILS_H
#define MATH_UTILS_H
#ifdef __cplusplus
extern "C"
{
#endif
// 基础数学运算
int add(int a, int b);
int subtract(int a, int b);
float multiply(float a, float b);
float divide(float a, float b);
int fibonacci(int n);
// 内存操作
void *create_buffer(int size);
void destroy_buffer(void *p);
// 数组运算
int compute_sum(int *arr, int size);
// 字符串操作
const char *get_greeting();
#ifdef __cplusplus
}
#endif
#endif // MATH_UTILS_H