Anche stdprn mai sentita, evidentemente non è nell'ANSI
infatti facendo alcune ricerce stdprn sembra esistere solo per dos, quindi dovresti usare un compilatore tipo Turbo C++.
In rete si vede qualcosa come
FILE *stdprn;
stdprn = fopen("PRN","wb");
fprintf(stdprn,"From Windows: Test test test\f");
fclose(stdprn);
così lo riconosce ma non stampa.
Io per stampare ho sempre usato l'api sopra potresti per dire scrivere un file di testo e darlo in pasto a schellexecute, il flusso di stampa, essendo per dos, non ho mai avuto modo di usarlo.
![]()