[Pyrex] Best/easiest way to access C's stderr?

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Jun 26 03:52:07 CEST 2003


> But I am  wondering how to best (easiest method to)
> declare/define the symbol "stderr" in the pyx  file

Sorry, I forgot to include that:

   cdef extern from "stdio.h":
     ctypedef struct FILE
     FILE *stderr
     int fprintf(FILE *, char *, ...)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list