home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / plstsrc / stdio.c < prev    next >
Text File  |  1988-12-25  |  5KB  |  99 lines

  1. /*----------------------------------------------------------------------*
  2. *                              Nodelist Parser                          *
  3. *                                                                       *
  4. *              This module was originally written by Bob Hartman        *
  5. *                       Sysop of FidoNet node 1:132/101                 *
  6. *                                                                       *
  7. * Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061*
  8. *                                                                       *
  9. * This program source code is being released with the following         *
  10. * provisions:                                                           *
  11. *                                                                       *
  12. * 1.  You are  free to make  changes to this source  code for use on    *
  13. *     your own machine,  however,  altered source files may not be      *
  14. *     distributed without the consent of Spark Software.                *
  15. *                                                                       *
  16. * 2.  You may distribute "patches"  or  "diff" files for any changes    *
  17. *     that you have made, provided that the "patch" or "diff" files are *
  18. *     also sent to Spark Software for inclusion in future releases of   *
  19. *     the entire package.   A "diff" file for the source archives may   *
  20. *     also contain a compiled version,  provided it is  clearly marked  *
  21. *     as not  being created  from the original source code. No other    *
  22. *     executable  versions may be  distributed without  the             *
  23. *     consent of Spark Software.                                        *
  24. *                                                                       *
  25. * 3.  You are free to include portions of this source code in any       *
  26. *     program you develop, providing:  a) Credit is given to Spark      *
  27. *     Software for any code that may is used, and  b) The resulting     *
  28. *     program is free to anyone wanting to use it, including commercial *
  29. *     and government users.                                             *
  30. *                                                                       *
  31. * 4.  There is  NO  technical support  available for dealing with this  *
  32. *     source code, or the accompanying executable files.  This source   *
  33. *     code  is provided as is, with no warranty expressed or implied    *
  34. *     (I hate legalease). In other words, if you don't know what to do  *
  35. *     with it,  don't use it,  and if you are brave enough to use it,   *
  36. *     you're on your own.                                               *
  37. *                                                                       *
  38. * Spark Software may be contacted by modem at (603) 888-8179            *
  39. * (node 1:132/101) on the public FidoNet network, or at the address     *
  40. * given above.                                                          *
  41. *-----------------------------------------------------------------------*/
  42. /*----------------------------------------------------------------------*
  43. *  This is the Parselst Implementation for the ATARI ST Line of  68000  *
  44. *  Computers running under TOS. It was ported, cause I needed a Nodelist*
  45. *  producer for  the BinkleyTerm/ST Implementation.                     *
  46. *  Please don'nt nerve Bob Hartmann with question to this piece of code.*
  47. *  He provided the original.                                            *
  48. *  Bob Hartmann and Spark Software still own the copyright for this code*
  49. *  Questions can be sent to:                                            *
  50. *                                                                       *
  51. *  Peter Glasmacher                                                     *
  52. *  2250 Monroe Street #123                      Schuerbankstr.15        *
  53. *  Santa Clara,CA 95050                         D-4600 Dortmund 41      *
  54. *  USA                                          West Germany            *
  55. *                                                                       *
  56. *  FIDO 1:143/9 (408)-985-1538                  1:143/9 via 2:507/1     *
  57. *-----------------------------------------------------------------------*/
  58. #include <stdio.h>
  59. #include <stdlib.h>
  60. #include <ctype.h>
  61. #ifdef ST
  62. #  include <tos.h>
  63. #else
  64. # include <fcntl.h>
  65. #include <io.h>
  66. #endif
  67. #include "types.h"
  68. #include "externs.h"
  69. fast_open (name, mode)
  70. char *name;
  71. int mode;
  72. {
  73. int f;
  74.    f = open(name,mode|O_RDWR);
  75.    return (f);
  76. }
  77.  
  78. fast_close (f)
  79. int f;
  80. {
  81.    return(close(f));
  82. }
  83.  
  84. fast_write (f, st, l)
  85. int f;
  86. char *st;
  87. unsigned int l;
  88. {
  89.    return(write(f,st,l));
  90. }
  91.  
  92. fast_read (f, st, l)
  93. int f;
  94. char *st;
  95. unsigned int l;
  96. {
  97.    return(read(f,st,l));
  98. }
  99. ə