[comp.lang.c] write

throopw@sheol.UUCP (Wayne Throop) (09/23/90)

> From: jdarcy@encore.com (Jeff d'Arcy)
>	static char message[] = "hello";
>	/* ... */
>	write(fd,message,sizeof(message));

Note that (sizeof(message)) is 6... the suggested "write" will
solve the question on that other thread... how to write a NUL to a file.

( Also note that the form as it appears in the Subject: line has
  been known to break pcc-based compilers if I remember right... they
  were promoting "foobar" to a pointer "too soon". Getting Jeff's verseion
  wrong seems much, much rarer. )
--
Wayne Throop <backbone>!mcnc!rti!sheol!throopw or sheol!throopw@rti.rti.org