home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / getpath / getpath.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-03  |  2.3 KB  |  56 lines

  1.  
  2. /************************************************************************
  3.  *                                                                      *
  4.  * getpath.h:  Header File for getpath.c                                *
  5.  *                                                                      *
  6.  *                 Version 1.00  ---   May 19, 1988                     *
  7.  *                                                                      *
  8.  *              Copyright (c) 1988 by David O. Tinker                   *
  9.  *            All Rights Reserved except as noted below.                *
  10.  *                                                                      *
  11.  * This software may be used without charge for non-commercial purposes *
  12.  * provided this Copyright notice is not removed. Permission is granted *
  13.  * to make alterations to this software, provided credit is given to    *
  14.  * the original author in any altered version.                          *
  15.  *                                                                      *
  16.  *                      David O. Tinker                                 *
  17.  *                      Department of Biochemistry                      *
  18.  *                      University of Toronto                           *
  19.  *                      Toronto, Canada, M5S 1A8                        *
  20.  *                      E-mail:                                         *
  21.  *                      dtinker@utgpu.UUCP                              *
  22.  *                      dtinker@utoronto.BITNET                         *
  23.  *                                                                      *
  24.  ***********************************************************************/
  25.  
  26. #include <stdio.h>
  27.  
  28. #define BOOLEAN int
  29. #define TRUE  1
  30. #define FALSE 0
  31.  
  32. char *malloc(), *calloc();
  33. #define MALLOC(x)      ((x *) malloc(sizeof(x)))
  34. #define CALLOC(n, x)   ((x *) calloc(n, sizeof(x)))
  35.  
  36. char *getcwd(), *strcat();
  37.  
  38.  
  39. /****************************************
  40.  * File Path Descriptor                 *
  41.  ***************************************/
  42.  
  43.  /* structure to hold path data for current file */
  44.  
  45. struct path_primitive
  46.         {
  47.                 char *fil_disk;
  48.                 char *fil_path;
  49.                 char *fil_name;
  50.                 char *fil_ext;
  51.         };
  52.  
  53. typedef struct  path_primitive  path_t;
  54. path_t *getpath();
  55.  
  56.