📄 fifo.h
字号:
/* file:fifo.h first in first out(fifo) by jiniang 2005.02.04*/struct node { unsigned int size; void *data; struct node *next;};struct fifo{ unsigned int current; unsigned int max; struct node *first; struct node *last;};int fifo_init(struct fifo *p,unsigned int buf_size);int fifo_destroy();int fifo_put(struct fifo* p, void* data, unsigned int size);int fifo_get(struct fifo* p, void* data, unsigned int* size);int fifo_isempty();int fifo_isfull();int fifo_getcurrent(struct fifo* p);int fifo_setmax(struct fifo* p,unsigned int size);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -