Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME IV. Les librairies internes

2. La librairie scr4o

2.14 Fonctions de gestion des PRINTER

2.14.31 PR_mail (file s_prmail.c:407)

Syntax

PR_mail(
unsigned char *filename,
unsigned char *(*fn)(unsigned char *)
)
#else
PR_mail(filename, fn)
unsigned char *filename, *(*fn)();
#endif

Description

Cette fonction est un cas particulier de PR_mail_col() : l'impression commence toujours en col 0, il n'y a pas de caractère de début de ligne pour limiter l'impression, et le nombre de lignes n'est pas limité.

La fonction

        PR_mail(filename, fnptr)

vaut simplement

        PR_mail_col(filename, fnptr, 0, -1, 0)

Valeur retournée

Si le fichier ne peut être ouvert, PR_mail retourne -1. Sinon la fonction retourne 0

Exemple

    PR_select(pr_deskjet);
...
PR_mail("etiq.txt", myfn);
...
PR_send();

Voir également

SCR_isam_to_page(), PR_select(), PR_send(), PR_file(), PR_listing(), PR_mail_col()

File s_prmail.c

FILE *PR_file_open(char *filename)
PR_mail(unsigned char *filename, unsigned char *(*fn)(unsigned char *))
PR_mail_col(unsigned char *filename, unsigned char *(*fn)(unsigned char *), int col, int nl, int first_ch)
PR_mail_col_repl(unsigned char *filename, unsigned char *(*fn)(unsigned char *), int col, int nl, int first_ch, unsigned char *repl, unsigned char *by)

PR_file_open (file s_prmail.c:9)

Syntax

FILE *PR_file_open(
char *filename
)
#else
FILE *PR_file_open(filename)
char *filename;
#endif

Description

PR_mail_col_repl (file s_prmail.c:242)

Syntax

PR_mail_col_repl(
unsigned char *filename,
unsigned char *(*fn)(unsigned char *),
int col,
int nl,
int first_ch,
unsigned char *repl,
unsigned char *by
)
#else
PR_mail_col_repl(filename, fn, col, nl, first_ch, repl, by)
unsigned char *filename;
unsigned char *(*fn)();
int col, nl, first_ch;
unsigned char *repl, *by;
#endif

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be