PERSONNE NE SAIT IMPRIMER EN LANGAGE C.

archange -  
jisisv Messages postés 3678 Statut Modérateur -
qu elle est la foonction pour imprimer en c
A voir également:

1 réponse

jisisv Messages postés 3678 Statut Modérateur 935
 
Une solution, pas la eilleure, sous Unix:

#include <stdio.h>
int main() {
/*
m1324 is the name of the printer
*/
FILE *macommande = popen("lpr -P m1324" , "w");
if (macommande) {
fprintf(macommande, "Une chaine %s , un caractère %c\n" , "Hello World", 65);
}
}
Johan
0