fifo refine
This commit is contained in:
@@ -26,6 +26,8 @@ typedef struct fifo_t{
|
||||
os_size_t read_idx;
|
||||
}fifo_t;
|
||||
|
||||
#define FIFO_INVALID_POS ((os_size_t)(-1))
|
||||
|
||||
/* ==================================================================================================== */
|
||||
/* 接口 */
|
||||
|
||||
@@ -139,4 +141,6 @@ os_size_t fifo_find(fifo_t *rb, os_size_t offset, const void *pattern, os_size_t
|
||||
|
||||
unsigned long fifo_strtoul(fifo_t* self, os_size_t* endptr /*从哪里开始转换, 可以为空*/, int base /*0, 8, 10, 16 进制*/);
|
||||
|
||||
os_size_t fifo_strstr(fifo_t *self, const char *search);
|
||||
|
||||
#endif /*INCLUDED_FIFO_H*/
|
||||
|
||||
Reference in New Issue
Block a user