| www.delorie.com/archives/browse.cgi | search |
| Date: | Thu, 5 Dec 1996 19:14:25 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk> |
| cc: | DJGPP AT delorie DOT com |
| Subject: | Re: v2 funnies |
| In-Reply-To: | <1119426E71@fs2.mt.umist.ac.uk> |
| Message-ID: | <Pine.SUN.3.91.961205191301.9964C-100000@is> |
| MIME-Version: | 1.0 |
Sorry, I forgot to append the test program. Here:
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
int
main (void)
{
char fn[] = "opentst.dat";
int fd = open (fn, O_RDWR | O_CREAT);
if (fd < 0)
perror (fn);
write (fd, "Hello, world!\n", 14);
close (fd);
return 0;
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |