# To subscribers of the xforms list from Yann Guichoux <firstname.lastname@example.org> :
Steve Lamont wrote:
> # To subscribers of the xforms list from email@example.com (Steve Lamont) :
> > I think i got a bug with fl_popen & fl_pclose functions.
> > I spawn a process using popen ...
> > I write to it some data
> > I close the process using pclose
> > Everything works fine...
> > When i use fl_popen & fl_pclose instead of popen &pclose...the child
> > process jams...
> I noticed something similar when playing with it myself. There are a
> couple of things I don't understand in the source as of this moment
> in fl_pclose().
> If you can provide some simple example code, that would be helpful.
here are the only things i do :
for (i=0; i<10 ; i++)
with this "writeFunction"
void writePPM(FL_IMAGE *fl_image,FILE *fpointer)
register int y, x;
unsigned char r,g,b;
/* magic number */
/* width, height */
fprintf(fpointer, "%d %d\n", fl_image->w, fl_image->h);
/* max value */
for ( y = 0; y < fl_image->h; y++ )
for ( x = 0; x < fl_image->w; x++ )
fwrite(&r, 1, 1, fpointer);
fwrite(&g, 1, 1, fpointer);
fwrite(&b, 1, 1, fpointer);
To unsubscribe, send the message "unsubscribe" to
firstname.lastname@example.org or see
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed Mar 22 2000 - 10:26:46 EST