home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / IRITS.ZIP / XGENERAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  1.1 KB  |  40 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * A replacer for the MSDOS functions.                         *
  7. *****************************************************************************/
  8.  
  9. #ifndef __MSDOS__
  10.  
  11. #ifndef    XGENERAL_H                    /* Define only once. */
  12. #define    XGENERAL_H
  13.  
  14. #ifndef M_PI
  15. #define M_PI    3.141592653
  16. #endif /* M_PI */
  17.  
  18. #ifndef SYSV
  19. char *memcpy(VoidPtr Dest, VoidPtr Src, int Len);
  20. char *strdup(char *s);
  21. #endif /* SYSV */
  22.  
  23. #ifdef BSD43
  24. char *getcwd(char *s, int Len);
  25. #endif /* BSD43 */
  26.  
  27. VoidPtr malloc(unsigned int Size);
  28. void free(char *p);
  29. char *getenv(char *Name);
  30.  
  31. /* IBMPC functions emulated in xgeneral.c module: */
  32. char *searchpath(char *Name);
  33. int strnicmp(char *s1, char *s2, int n);
  34. char *strstr(char *s, char *Pattern);
  35. int stricmp(char *s1, char *s2);
  36. void movmem(VoidPtr Src, VoidPtr Dest, int Len);
  37.  
  38. #endif /* XGENERAL_H */
  39. #endif /* __MSDOS__ */
  40.