home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / msgapi38.zip / INCLUDE / PROGPROT.H < prev    next >
C/C++ Source or Header  |  1995-05-27  |  8KB  |  153 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 by Scott J. Dudley.  All rights reserved.          *
  5.  *                                                                         *
  6.  *  PROG.H prototypes                                                      *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in           *
  10.  *  README.1ST.                                                            *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MSGAPI LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS       *
  14.  *  AGREEMENT IN ANY OF THE AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE    *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MSGAPI LICENSING         *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        Internet f106.n249.z1.fidonet.org               *
  25.  *  Kingston, Ont.         BBS      (613) 389-8315   HST/14.4k, 24hrs      *
  26.  *  Canada - K7M 5N3                                                       *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. /* $Id: progprot.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  31.  
  32. void pascal far flush_handle2(int fd);
  33. void _fast flush_handle(FILE *fp);
  34. int _fast Save_Dir(char *orig_disk,char *orig_path[],char *path);
  35. void _fast Restore_Dir(char *orig_disk,char *orig_path[]);
  36. char * _fast Area_Name(int area);
  37. int _fast Set_Area_Name(char *aname);
  38. char * _fast Priv_Level(int priv);
  39. int _fast fexist(char *filename);
  40. long _fast fsize(char *filename);
  41. int _fast lcopy(char *fromfile,char *tofile);
  42. int _stdc hprintf(int handle,char *format,...);
  43. long _stdc zfree(char *drive);
  44. int _fast getword(char *strng,char *dest,char *delim,int findword);
  45. int _fast getwordq(char *strng,char *dest,char *delim,char quote,int findword);
  46. byte * _fast avt2ansi(sword new, sword old, char *ansi);
  47. char * _stdc fancy_str(char *value);
  48. char * _fast soundex(char *string);
  49. int _fast any2dec(char *str,unsigned int radix);
  50. char * _fast dec2any(unsigned int number,unsigned int radix);
  51. int _fast isleap(int year);
  52. char * _fast strrcat(char *string1,char *string2);
  53. char * _fast make_fullfname(char *path);
  54. char * _fast firstchar(char *strng,char *delim,int findword);
  55. int _stdc xprintf(char *format,...);
  56. void _stdc xputs(char *s);
  57. void _stdc xputch(char ch);
  58. void pascal xputchr(char ch);
  59. void _stdc putss(char *string);
  60. char * _fast stristr(char *string,char *search);
  61. int _fast stristrm(char *string,char *search[],int stopbit);
  62. int _fast stricmpm(char *string,char *search[],int stopbit);
  63. long _fast stristrml(char *string,char *search[],long stopbit);
  64. int _fast nullptr(void);
  65. long _stdc timerset(unsigned int duration);
  66. int _stdc timeup(long timer);
  67. int _fast sbsearch(char *key,char *base[],unsigned int num);
  68. char * _fast memstr(char *string,char *search,unsigned lenstring,unsigned strlen_search);
  69. void _fast ddos_timer(unsigned int duration);
  70. void _fast ddos_priority(int value);
  71. void _fast ddos_switch(void);
  72. void _fast ddos_suspend(void);
  73. void _fast ddos_resume(void);
  74. void _fast ddos_kill(void);
  75. void _fast ddos_clear_vkb(void);
  76. void _fast ddos_send(char ch);
  77. void _fast ddos_addkey(char ch);
  78. void _fast ddos_key_disable(void);
  79. void _fast ddos_key_enable(void);
  80. int  _fast ddos_herestat(void);
  81. int  _fast ddos_flipstat(void);
  82. void _fast ddos_funcs_enable(void);
  83. void _fast ddos_funcs_disable(void);
  84. void _fast brktrap(void);
  85. void _stdc  brkuntrap(void); /* cdecl because of atexit() */
  86. void _fast qksort(int a[],size_t n);
  87. int  _fast direxist(char *directory);
  88.  
  89. int _fast get_fdt(int handle, union stamp_combo *filestamp);
  90. int _fast set_fdt(int handle, union stamp_combo *filestamp);
  91.  
  92. int _fast get_disk(void);
  93. int _fast set_disk(int drive);
  94. int pascal far ddos_sleep(void);
  95. int pascal far desq_sleep(void);
  96. int pascal far pcmos_sleep(void);
  97. int _fast zeller(int m,int d,int y);
  98. void _fast iqsort(char *base, unsigned int nel, unsigned int inwidth, int (_stdc *comp)(void *,void *));
  99. void _fast colour_to_string(int col,char *s);
  100. int _fast make_dir(char *dir);
  101. FILE * _fast shfopen(char *name,char *fpmode,int fdmode);;
  102. unsigned int cdecl Get_CPU_Type(void);
  103. int _fast do_tune(FILE *tunefile,int (_stdc *chkfunc)(void),int dv);
  104. int _fast play_tune(char *filespec,char *name,int (_stdc *chkfunc)(void),int dv);
  105. void _fast tdelay(int msecs);
  106. void _fast dv_noise(int freq,int duration);
  107. void _fast noise(int freq,int duration);
  108. void _fast ASCII_Date_To_Binary(char *msgdate,union stamp_combo *d_written);
  109. union stamp_combo * _fast Get_Dos_Date(union stamp_combo *st);
  110. struct tm * _fast DosDate_to_TmDate(union stamp_combo *dosdate,
  111.                                      struct tm *tmdate);
  112. union stamp_combo * _fast TmDate_to_DosDate(struct tm *tmdate,
  113.                                              union stamp_combo *dosdate);
  114.  
  115. char * _fast Strip_Trailing(char *str,char strip);
  116. char * _fast Add_Trailing(char *str,char add);
  117. void _fast Parse_NetNode(char *netnode,word *zone,word *net,word *node,word *point);
  118. void _fast ParseNN(char *netnode,word *zone,word *net,word *node,word *point,word all);
  119. void _fast c_encode(char *str,char *iarray,int len,int key);
  120. void _fast c_decode(char *iarray,char *str,int key);
  121. char * _fast sc_time(union stamp_combo *sc,char *string);
  122. unsigned long _fast ieee_to_long(unsigned long f);
  123. unsigned long _fast long_to_ieee(unsigned long l);
  124. int _fast ieee_to_msbin(void *source,void *dest);
  125. int _fast msbin_to_ieee(void *source,void *dest);
  126. int _stdc AreaNameComp(byte *a1,byte *a2);
  127. void * _fast smalloc(unsigned size);
  128. char * _fast sstrdup(char *s);
  129. char * _fast strocpy(char *d, char *s);
  130. int pascal kgetch(void);
  131. int pascal kpeek(void);
  132. int pascal khit(void);
  133. int _fast cshopen(const char *path, int access);
  134. dword _fast crc32fn(word ch, dword crc);
  135. dword * _fast mkcrc32tab(void);
  136. word _fast crc16fn(word ch, word crc);
  137. word * _fast mkcrc16tab(void);
  138. char * _fast strrstr(char *str, char *delim);
  139. FILE * _fast sfopen(char *name, char *fpmode, int fdmode, int access);
  140. int _fast FileDate(char *name, union stamp_combo *sc);
  141. void * _fast qsortl(void *list, void *(_stdc *getnext)(void *),
  142.                     void (_stdc *setnext)(void *, void *),
  143.                     int (_stdc *compare)(void *, void *));
  144. int _fast GEdate(union stamp_combo *s1,union stamp_combo *s2);
  145. void _fast install_24(void);
  146. void _stdc uninstall_24(void);
  147. sword _fast uniqrename(char *from, char *toorig);
  148. word pascal getcpu(void);
  149. word pascal getfpu(void);
  150. int _fast SetFileDate(char *name, union stamp_combo *sc);
  151. int setfsize(int fd, long size);
  152.  
  153.