test_intf.h
来自「PB 熟悉的哥们希望大家可以互相学习一下」· C头文件 代码 · 共 63 行
H
63 行
#ifndef __TEST_INTERFACE_H
#define __TEST_INTERFACE_H
typedef struct tag_test_inner_struct
{
unsigned char a;
unsigned short b;
unsigned int c;
unsigned long d;
} test_inner_struct_t, * test_inner_struct_p;
typedef struct tag_test_struct
{
unsigned int a;
char b;
char* c /*string*/;
unsigned short d;
short e[3];
test_inner_struct_t f[2];
} test_struct_t, * test_struct_p;
typedef union tag_test_union
{
unsigned int a;
char* b /*string*/;
} test_union_t;
typedef struct tag_test_struct_union
{
unsigned char tp;
test_union_t dt /* active(tp) */;
} test_struct_union_t, * test_struct_union_p;
typedef struct tag_test_struct_variable
{
unsigned int a_sz;
unsigned int b_len;
unsigned short* a /* size(a_sz) */;
unsigned short* b /* length(b_len) */;
} test_struct_variable_t, * test_struct_variable_p;
int test_int(int i);
void test_void_int(int i);
typedef char* zstring /* string */;
typedef int int5[5];
int test_int_string(zstring str);
int test_int_int5(int5 ints);
int test_int_pstruct(test_struct_p pstruct);
int test_int_variable_len(test_struct_variable_p p);
int test_int_union(test_struct_union_p p);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?