collectn.h

来自「nasm早期的源代码,比较简单是学习汇编和编译原理的好例子」· C头文件 代码 · 共 23 行

H
23
字号
/*
 * collectn.h - header file for 'collection' abstract data type.
 *
 * This file is public domain, and does not come under the NASM license.
 * It, aint32_t with 'collectn.c' implements what is basically a variable
 * length array (of pointers).
 */

#ifndef RDOFF_COLLECTN_H
#define RDOFF_COLLECTN_H 1

typedef struct tagCollection {
    void *p[32];                /* array of pointers to objects */

    struct tagCollection *next;
} Collection;

void collection_init(Collection * c);
void **colln(Collection * c, int index);
void collection_reset(Collection * c);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?