9fans archive / 1997 / 11 / 19 /    prev next

From: erik quanstrom quanstro@Inf...
Subject: [9fans] fprint(int fd, const char* format,...);
Date: Fri, 21 Nov 1997 10:51:19 -0500

>on Plan 9, you can use
>        fprint(2, ...);
>to print directly to a file descriptor, instead of
>        fprintf(stderr, ...
>avoiding an old library and the possible need to fflush.

plan9 does not have a monopoly on this. i have been
using the "print" library for years. from the copyright:

; cat COPYRIGHT
/*
 * Copyright 1994 Paul Haahr, Scott Schwartz, Byron Rakitzis.
 * All rights reserved.
[...]

sorry, i don't know where it lives in ftp-land off hand.

erik