File: misc.h

package info (click to toggle)
sing 1.1-9sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,464 kB
  • ctags: 2,092
  • sloc: ansic: 20,745; sh: 4,778; makefile: 718; yacc: 234; lex: 203
file content (19 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* $Id: misc.h,v 1.1.1.1 2000/06/19 09:08:14 slay Exp $ */

#ifndef __MISC_H__
#define __MISC_H__

#define copymem( s, d, l)  memcpy( d, s, l)
#define initmem( d, l)  memset( d, 0, l)

#ifndef MAX_C
#define MAX_C(x)  ( sizeof(x)/sizeof(x[0]) )
#endif

#ifdef HVE_SOCKADDR_LEN
#ifndef MAX
#define MAX(x,y) ( ((x) > (y)) ? (x) : (y) )
#endif
#endif

#endif