PERSONNE NE SAIT IMPRIMER EN LANGAGE C.
Fermé
archange
-
26 juin 2001 à 09:29
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 27 juin 2001 à 06:07
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 27 juin 2001 à 06:07
A voir également:
- PERSONNE NE SAIT IMPRIMER EN LANGAGE C.
- Et en langage c - Astuces et Solutions
- Imprimante hp en pause ✓ - Forum Imprimante
- Imprimer en a3 sur imprimante a4 ✓ - Forum Bureautique
- Imprimante en pause ✓ - Forum Imprimante
- Imprimer en a3 avec imprimante a4 ✓ - Forum Matériel informatique
1 réponse
jisisv
Messages postés
3645
Date d'inscription
dimanche 18 mars 2001
Statut
Modérateur
Dernière intervention
15 janvier 2017
946
27 juin 2001 à 06:07
27 juin 2001 à 06:07
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
#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