Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
useful.h
Package: sendmail.8.10.0.Beta10.tar.Z [view]
Upload User: xu_441
Upload Date: 2007-01-04
Package Size: 1640k
Code Size: 1k
Category:
Email Client
Development Platform:
Unix_Linux
- /*
- * Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
- * All rights reserved.
- * Copyright (c) 1995-1997 Eric P. Allman. All rights reserved.
- * Copyright (c) 1988, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * By using this file, you agree to the terms and conditions set
- * forth in the LICENSE file which can be found at the top level of
- * the sendmail distribution.
- *
- *
- * $Id: useful.h,v 8.18 1999/07/13 15:05:57 ca Exp $
- */
- #ifndef _USEFUL_H
- # define _USEFUL_H
- # include <sys/types.h>
- /* support for bool type */
- typedef int bool;
- # ifndef TRUE
- # define TRUE 1
- # define FALSE 0
- # endif /* ! TRUE */
- # ifndef NULL
- # define NULL 0
- # endif /* ! NULL */
- /* bit hacking */
- # define bitset(bit, word) (((word) & (bit)) != 0)
- /* some simple functions */
- # ifndef max
- # define max(a, b) ((a) > (b) ? (a) : (b))
- # define min(a, b) ((a) < (b) ? (a) : (b))
- # endif /* ! max */
- /* assertions */
- # ifndef NASSERT
- # define ASSERT(expr, msg, parm)
- if (!(expr))
- {
- fprintf(stderr, "assertion botch: %s:%d: ", __FILE__, __LINE__);
- fprintf(stderr, msg, parm);
- }
- # else /* ! NASSERT */
- # define ASSERT(expr, msg, parm)
- # endif /* ! NASSERT */
- /* sccs id's */
- # ifndef lint
- # ifdef __STDC__
- # define SCCSID(arg) static char SccsId[] = #arg;
- # else /* __STDC__ */
- # define SCCSID(arg) static char SccsId[] = "arg";
- # endif /* __STDC__ */
- # else /* ! lint */
- # define SCCSID(arg)
- # endif /* ! lint */
- #endif /* ! _USEFUL_H */