we are sending a string to a lpr using
FILE *prn = popen ( "lpr","w");
finally we do a pclose()
this routine get called for some asynchronous event.
the problem is that after every close or new open ( i dont know ) the lpr gives a page feed ( or form feed ) and runs to the next page.
now the stuff we are printing is 5 lines long i dont want the whole page to go waste.. how do i stop this from happening.
i tried keeping FILE *ptr as extern but it does not work ( should it work, ?? )
HELP !!!
rahul