1

C Language: minimalist direct printing in Linux

view story
linux-howto

http://www.linuxquestions.org – Hi, Under Windows, I am printing directly very easily in the C language. Coding this in Windows is very simple. But under Linux, there are not so many libs or possibilities (without installing CUPS) Would you know how to make that for Linux? thanks -- Under Windows, herewith a simple example in c++: Code: i.e.: string hello = "!!! Hello Printer !!!\f"; becomes: const char* hello = "!!! Hello Printer !!!\f"; if (WritePrinter( hPrinter, (void*)hello.c_str(), hello.length(), &dwBytesWritten)) { if (WritePrinter( hPrinter, (void*)hello, strlen(hello), &dwBytes (HowTos)