home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / l / inet-handler / dirindex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-17  |  672 b   |  34 lines

  1. /*
  2.  * dirindex.h
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  *     Copyright (c) 1993 Tomi Ollila
  7.  *         All rights reserved
  8.  *
  9.  * Created: Thu Nov  4 23:08:25 1993 too
  10.  * Last modified: Sun Nov 14 18:57:59 1993 too
  11.  *
  12.  * HISTORY
  13.  * $Log: dirindex.h,v $
  14.  * Revision 1.1  1993/11/17  11:47:44  too
  15.  * Initial revision
  16.  *
  17.  * Revision 1.1  1993/11/17  11:47:44  too
  18.  * Initial revision
  19.  *
  20.  */
  21.  
  22. #ifndef _DIRINDEX_H_
  23. #define _DIRINDEX_H_
  24.  
  25. /*
  26.  * WARNING: this macro doesn't do typechecking, so look that `buf' is of type
  27.  * `otype' (as usually you want this) 
  28.  */
  29. #define directIndex(otype, buf, ptr) \
  30.   (otype)(*(otype *)(((char *)(buf)) + (ptr)))
  31.  
  32. #endif /* _DIRINDEX_H_ */
  33.  
  34.