home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / dos / sbbs_src.exe / SBBS / UTI / UTIVER.C < prev   
Encoding:
C/C++ Source or Header  |  1997-04-25  |  541 b   |  27 lines

  1. /* UTIVER.C */
  2.  
  3. /* Developed 1990-1997 by Rob Swindell; PO Box 501, Yorba Linda, CA 92885 */
  4.  
  5. #include <stdio.h>
  6. #include <conio.h>
  7. #include <io.h>
  8. #include <fcntl.h>
  9. #include <sys/stat.h>
  10. #include "uti.h"
  11.  
  12. int main(int argc, char **argv)
  13. {
  14.     char str[1024];
  15.     int file;
  16.  
  17. sprintf(str,"2\r\nSynchronet UTI Driver v%s - "
  18.             "Developed 1995-1997 Rob Swindell\r\n",VER);
  19. if(argc<2)
  20.     exit(1);
  21. if((file=open(argv[1],O_WRONLY|O_CREAT|O_TRUNC,S_IWRITE))==-1)
  22.     exit(2);
  23. write(file,str,strlen(str));
  24. close(file);
  25. return(0);
  26. }
  27.