How to print to network printer in cygwin using C

Jeff Lu j_lu9698@bellsouth.net
Sun Dec 30 13:52:00 GMT 2001


The network printer is //host_1/printer1

in my C code:

printHandle = fopen("//host_1/printer1/, "wb");
fwrite(buffer, sizeof(char), strlen(buffer), printHandle);
fclose(printHandle);

This was working at one time.  But it's not working anymore!

Please help somebody



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list