|
From: | Giulio Orsero |
Subject: | Re: [bug-enscript] enscript and temp file location |
Date: | Wed, 12 Nov 2008 18:16:14 +0100 |
On Fri, Apr 25, 2008 at 11:36 PM, Shawn McMahon <address@hidden> wrote:I'm not a C programmer, could you tell me how I switch from
> Why wouldn't we just use the simpler example:
>
> char *filename;
> int fd;
>
> do {
> filename = tempnam (NULL, "foo");
> fd = open (filename, O_CREAT | O_EXCL | O_TRUNC | O_RDWR, 0600);
> free (filename);
> } while (fd == -1);
static FILE *divertfp = NULL;
divertfp = tmpfile ();
to your example?
I can substitute the current instruction with the new ones, but then
how I convert from "int something" to "FILE *something"
[Prev in Thread] | Current Thread | [Next in Thread] |