home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp / src / l / inet-handler / dirindex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-05  |  606 b   |  31 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.  */
  18.  
  19. #ifndef _DIRINDEX_H_
  20. #define _DIRINDEX_H_
  21.  
  22. /*
  23.  * WARNING: this macro doesn't do typechecking, so look that `buf' is of type
  24.  * `otype' (as usually you want this) 
  25.  */
  26. #define directIndex(otype, buf, ptr) \
  27.   (otype)(*(otype *)(((char *)(buf)) + (ptr)))
  28.  
  29. #endif /* _DIRINDEX_H_ */
  30.  
  31.