binary.h
来自「Object-Oriented Programming With ANSI-C这」· C头文件 代码 · 共 22 行
H
22 行
#ifndef BINARY_H#define BINARY_H/* * binary() * search and maintain a sorted array * * key search argument, passed as first argument to cmp * if not found, entered as width bytes into table * base begin of table with *nelp elements of width bytes * cmp() comparison, must return < == > 0 * * returns pointer to table entry containing key, e.g., base, base+1... */#include <stddef.h>void * binary (const void * key, void * base, size_t * nelp, size_t width, int (* cmp) (const void * key, const void * elt));#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?