Calling fprintf_, fread_ from PB linux
Posted: Fri Sep 24, 2004 3:00 pm
i know that PB on linux supports these two API, but i can't figure out how to call them to write to stdout and read from stdin resp...
any idea?
i tryed
but no way... i know fprintf_ and fread_ and others receive an argument of type FILE, but i don't know how to tell them to pass stdin, stdout or stderr...
another question...anybody knows whether i can declare a variable being of type FILE, or do i have to put
before declaring the variable of that type?
thanks
any idea?
i tryed
Code: Select all
#stdout = 2
fprintf_(#stdout,"message")
another question...anybody knows whether i can declare a variable being of type FILE, or do i have to put
Code: Select all
Structure FILE
_ptr.s
_cnt.l
_base.s
_flag.l
_file.l
_charbuf.l
_bufsiz.l
_tmpfname.s
EndStructure
thanks