⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hash.h

📁 vxworks 6.x 的全部头文件
💻 H
字号:
/* hash.h - DHCP server include file for hash table functions *//* Copyright 1984 - 1997 Wind River Systems, Inc. *//*modification history____________________01b,06aug97,spm  added definitions for C++ compilation01a,07apr97,spm  created by modifying WIDE project DHCP implementation*//* * Modified by Akihiro Tominaga. (tomy@sfc.wide.ad.jp) *//* * Generalized hash table ADT * * Provides multiple, dynamically-allocated, variable-sized hash tables on * various data and keys. * * This package attempts to follow some of the coding conventions suggested * by Bob Sidebotham and the AFS Clean Code Committee. * * * * Copyright 1988 by Carnegie Mellon. * * Permission to use, copy, modify, and distribute this program for any * purpose and without fee is hereby granted, provided that this copyright * and permission notice appear on all copies and supporting documentation, * the name of Carnegie Mellon not be used in advertising or publicity * pertaining to distribution of the program without specific prior * permission, and notice be given in supporting documentation that copying * and distribution is by permission of Carnegie Mellon and Stanford * University.  Carnegie Mellon makes no representations about the * suitability of this software for any purpose.  It is provided "as is" * without express or implied warranty. */#ifndef __INChashh#define __INChashh#ifdef __cplusplusextern "C" {#endif#define HASHTBL_SIZE            127     /* this is a prime number */#ifndef TRUE#define TRUE    1#endif#ifndef FALSE#define FALSE   0#endif#ifndef NULL#define NULL    0#endif/* * Define "hash_datum" as a universal data type */#ifdef __STDC__typedef void hash_datum;#elsetypedef char hash_datum;#endifstruct hash_member {    struct hash_member *next;    hash_datum  *data;};struct hash_tbl {    struct hash_member *head[HASHTBL_SIZE];};extern int  hash_exst();extern int  hash_ins();extern int  hash_del();extern hash_datum  *hash_pickup();extern hash_datum  *hash_find();#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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