From: Maurice L. <mj...@ga...> - 2004-01-16 06:31:42
|
Jay Christnach writes: > Here is what I did in my application code: > ... > #include "plstrm.h" > extern PLStream *plsc; > .... > plinit(); > plsc->plbuf_write=0; > .... > > I'm not sure if this was the right (or the best) way to do it, but I think I > can be happy with it. Thanks to the developers of those cool libraries which > make programming a lot more fun! Actually, it would be a bit better to use plgpls() to get the stream pointer. That way it would still work should you ever go with multiple streams, or if we should ever make plsc unavailable to the outside world. While plgpls() is not part of the "common" API, it is still part of the standard "C" API AFAIAC. -- Maurice LeBrun |