home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / SQDEV200.ZIP / H / PROGPROT.H < prev    next >
C/C++ Source or Header  |  1994-05-23  |  8KB  |  182 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  Squish Developers Kit Source, Version 2.00                             *
  4.  *  Copyright 1989-1994 by SCI Communications.  All rights reserved.       *
  5.  *                                                                         *
  6.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  7.  *  SQUISH DEVELOPERS KIT LICENSING AGREEMENT IN SQDEV.PRN.  IF YOU DO NOT *
  8.  *  FIND THE TEXT OF THIS AGREEMENT IN THE AFOREMENTIONED FILE, OR IF YOU  *
  9.  *  DO NOT HAVE THIS FILE, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT    *
  10.  *  ONE OF THE ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO  *
  11.  *  USE THIS FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE SQUISH          *
  12.  *  DEVELOPERS KIT LICENSING AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE *
  13.  *  ABLE TO REACH WITH THE AUTHOR.                                         *
  14.  *                                                                         *
  15.  *  You can contact the author at one of the address listed below:         *
  16.  *                                                                         *
  17.  *  Scott Dudley       FidoNet     1:249/106                               *
  18.  *  777 Downing St.    Internet    sjd@f106.n249.z1.fidonet.org            *
  19.  *  Kingston, Ont.     CompuServe  >INTERNET:sjd@f106.n249.z1.fidonet.org  *
  20.  *  Canada  K7M 5N3    BBS         1-613-634-3058, V.32bis                 *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. cpp_begin()
  25.  
  26. /*lint ++flb */
  27.  
  28. void pascal far flush_handle2(int fd);
  29. void _fast flush_handle(FILE *fp);
  30. int _fast Save_Dir(char *orig_disk,char *orig_path[],char *path);
  31. void _fast Restore_Dir(char *orig_disk,char *orig_path[]);
  32. char * _fast Area_Name(int area);
  33. int _fast Set_Area_Name(char *aname);
  34. char * _fast Priv_Level(int priv);
  35. int _fast fexist(char *filename);
  36. long _fast fsize(char *filename);
  37. int _fast lcopy(char *fromfile,char *tofile);
  38. int _stdc hprintf(int handle,char *format,...);
  39. long _stdc zfree(char *drive);
  40. int _fast getword(char *strng,char *dest,char *delim,int findword);
  41. int _fast getwordq(char *strng,char *dest,char *delim,char quote,int findword);
  42. byte * _fast avt2ansi(sword nw, sword old, char *ansi);
  43. char * _stdc fancy_str(char *value);
  44. char * _fast soundex(char *string);
  45. int _fast any2dec(char *str,unsigned int radix);
  46. char * _fast dec2any(unsigned int number,unsigned int radix);
  47. int _fast isleap(int year);
  48. char * _fast strrcat(char *string1,char *string2);
  49. char * _fast make_fullfname(char *path);
  50. char * _fast firstchar(char *strng,char *delim,int findword);
  51. int _stdc xprintf(char *format,...);
  52. void _stdc xputs(char *s);
  53. void _stdc xputch(char ch);
  54. void pascal xputchr(char ch);
  55. void _stdc putss(char *string);
  56. char * _fast stristr(char *string,char *search);
  57. int _fast stristrm(char *string,char *search[],int stopbit);
  58. int _fast stricmpm(char *string,char *search[],int stopbit);
  59. long _fast stristrml(char *string,char *search[],long stopbit);
  60. int _fast nullptr(void);
  61. long _stdc timerset(unsigned int duration);
  62. int _stdc timeup(long timer);
  63. int _fast sbsearch(char *key,char *base[],unsigned int num);
  64. char * _fast memstr(char *string,char *search,unsigned lenstring,unsigned strlen_search);
  65. void _fast ddos_timer(unsigned int duration);
  66. void _fast ddos_priority(int value);
  67. void _fast ddos_switch(void);
  68. void _fast ddos_suspend(void);
  69. void _fast ddos_resume(void);
  70. void _fast ddos_kill(void);
  71. void _fast ddos_clear_vkb(void);
  72. void _fast ddos_send(char ch);
  73. void _fast ddos_addkey(char ch);
  74. void _fast ddos_key_disable(void);
  75. void _fast ddos_key_enable(void);
  76. int  _fast ddos_herestat(void);
  77. int  _fast ddos_flipstat(void);
  78. void _fast ddos_funcs_enable(void);
  79. void _fast ddos_funcs_disable(void);
  80. void _fast brktrap(void);
  81. void _stdc  brkuntrap(void); /* cdecl because of atexit() */
  82. void _fast qksort(int a[],size_t n);
  83. int  _fast direxist(char *directory);
  84.  
  85. int _fast get_fdt(int handle, union stamp_combo *filestamp);
  86. int _fast set_fdt(int handle, union stamp_combo *filestamp);
  87.  
  88. int _fast get_disk(void);
  89. int _fast set_disk(int drive);
  90. int pascal far ddos_sleep(void);
  91. int pascal far desq_sleep(void);
  92. int pascal far pcmos_sleep(void);
  93. int _fast zeller(int m,int d,int y);
  94. void _fast iqsort(char *base, unsigned int nel, unsigned int inwidth, int (_stdc *comp)(void *,void *));
  95. void _fast colour_to_string(int col,char *s);
  96. int _fast make_dir(char *dir);
  97. FILE * _fast shfopen(char *name,char *fpmode,int fdmode);
  98. unsigned int cdecl Get_CPU_Type(void);
  99. int _fast do_tune(FILE *tunefile,int (_stdc *chkfunc)(void),int dv);
  100. int _fast play_tune(char *filespec,char *name,int (_stdc *chkfunc)(void),int dv);
  101. void _fast tdelay(int msecs);
  102. void _fast dv_noise(int freq,int duration);
  103. void _fast noise(int freq,int duration);
  104. void _fast ASCII_Date_To_Binary(char *msgdate,union stamp_combo *d_written);
  105. union stamp_combo * _fast Get_Dos_Date(union stamp_combo *st);
  106. struct tm * _fast DosDate_to_TmDate(union stamp_combo *dosdate,
  107.                                      struct tm *tmdate);
  108. union stamp_combo * _fast TmDate_to_DosDate(struct tm *tmdate,
  109.                                              union stamp_combo *dosdate);
  110.  
  111. char * _fast Strip_Trailing(char *str,char strip);
  112. char * _fast Add_Trailing(char *str,char add);
  113. void _fast Parse_NetNode(char *netnode,word *zone,word *net,word *node,word *point);
  114. void _fast ParseNN(char *netnode,word *zone,word *net,word *node,word *point,word all);
  115. void _fast c_encode(char *str,char *iarray,int len,int key);
  116. void _fast c_decode(char *iarray,char *str,int key);
  117. char * _fast sc_time(union stamp_combo *sc,char *string);
  118. unsigned long _fast ieee_to_long(unsigned long f);
  119. unsigned long _fast long_to_ieee(unsigned long l);
  120. int _fast ieee_to_msbin(void *source,void *dest);
  121. int _fast msbin_to_ieee(void *source,void *dest);
  122. int _stdc AreaNameComp(byte *a1,byte *a2);
  123. void * _fast smalloc(unsigned size);
  124. char * _fast sstrdup(char *s);
  125. char * _fast strocpy(char *d, char *s);
  126. int pascal kgetch(void);
  127. int pascal kpeek(void);
  128. int pascal khit(void);
  129. int _fast cshopen(const char *path, int access);
  130. dword _fast crc32fn(word ch, dword crc);
  131. dword * _fast mkcrc32tab(void);
  132. word _fast crc16fn(word ch, word crc);
  133. word * _fast mkcrc16tab(void);
  134. char * _fast strrstr(char *str, char *delim);
  135. FILE * _fast sfopen(char *name, char *fpmode, int fdmode, int access);
  136. int _fast FileDate(char *name, union stamp_combo *sc);
  137. void * _fast qsortl(void *list, void *(_stdc *getnext)(void *),
  138.                     void (_stdc *setnext)(void *, void *),
  139.                     int (_stdc *compare)(void *, void *));
  140. int _fast GEdate(union stamp_combo *s1,union stamp_combo *s2);
  141. void _fast install_24(void);
  142. void _stdc uninstall_24(void);
  143. sword _fast uniqrename(char *from, char *toorig, char *final, int (_fast *pfnMove)(char *fromfile, char *tofile));
  144. word pascal getcpu(void);
  145. word pascal getfpu(void);
  146. int _fast SetFileDate(char *name, union stamp_combo *sc);
  147. int _fast setfsize(int fd, long size);
  148. word _fast ischin(byte *buf);
  149. char * _fast cstrupr(char *s);
  150. char * _fast cstrlwr(char *s);
  151. char * _stdc cfancy_str(char *str);
  152. void pascal serialize(char *SemName);
  153. char * _fast strnncpy(char *to, char *from, int n);
  154. char * _fast canon(char *orig, char *dest);
  155. void _fast NoMem(void);
  156. unsigned _fast is_device(int fd);
  157. unsigned _fast is_devicename(char *filename);
  158. void _stdc Vidfcur(void);
  159. void _fast h_memmove(void huge *to, void huge *from, long size);
  160. void pascal far f_memmove(void huge *from, void huge *to, unsigned short size);
  161. int far pascal f_read(int handle,char far *buf,unsigned int len);
  162. int far pascal f_write(int handle,char far *buf,unsigned int len);
  163.  
  164. void huge * _fast h_malloc(long size);
  165. void _fast h_free(void huge *p);
  166. long _fast h_read(int fd, char huge *buf, long size);
  167. long _fast h_write(int fd, char huge *buf, long size);
  168. void huge * _fast h_realloc(void huge *p, long newsize);
  169. /*void _fast Adjust_User_Record(struct _usr *user);*/
  170.  
  171. #ifdef __MSDOS__
  172.   sword far pascal shareloaded(void);
  173. #else
  174.   #define shareloaded() TRUE
  175. #endif
  176.  
  177.  
  178. /*lint --flb */
  179.  
  180. cpp_end()
  181.  
  182.