Annotation of sbbs/sbbs2/uti/utiver.c, revision 1.1.1.1

1.1       root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.