tmpfile returns always NULL with Windows CE

Vincent Torri
Fri Jun 13 14:19:00 GMT 2008


I'm compiling programs for Windows CE using CEgcc. That toolchain uses 
newlib as libc.

I tried that simple program:

#include <stdio.h>

int main (int argc, char *argv[])
    FILE *fp;

    fp = tmpfile();
    if (!fp)
 	printf("tmpfile returned NULL\n");
 	return -1;

    return 0;

on my ipaq, and tmpfile returns always NULL.

Is there a known bug with tmpfile when it is used with cegcc or windows 
ce ?

thank you

Vincent Torri

More information about the Newlib mailing list