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

SCR/AL1 - TOME III. Les librairies utilitaires

5. Le groupe s_strs

5.95 SCR_get_err_txt (file s_sterrt.c:275)

Syntax

char *SCR_get_err_txt(fd_msg, val)
FILE *fd_msg;
int val;

Description

Retourne un message sur base d'un numéro de message, du numéro de langue courante définie par la variable SCR_ERR_LANG. Ce message est lu dans le fichier ouvert fd_msg. La fonction est équivalente à

    SCR_get_err_txt_lang(fd_msg, val, SCR_ERR_LANG);

Valeur retournée

Un pointeur vers un buffer statique contenant le dernier message lu. 2 buffers sont utilisés en alternance de façon à permettre des expressions du type :

    printf("Error : %s %s\n", SCR_get_err_txt(fd, 124),
SCR_get_err_txt(fd, 12));

Voir également

SCR_search_file(), SCR_err_txt(), SCR_err_txt_lang(), SCR_get_err_txt_lang(), SCR_get_err_txt_t(), SCR_err_txt_t_lang(), SCR_get_err_txt_t_lang(), SCR_err_txt_t().

5.95.1 File s_sterrt.c

char *SCR_err_txt(val)
char *SCR_err_txt_lang(val, lang)
char *SCR_err_txt_t(keyw)
char *SCR_err_txt_t_lang(keyw, lang)
char *SCR_get_err_txt(fd_msg, val)
char *SCR_get_err_txt_lang(fd_msg, val, lang)
char *SCR_get_err_txt_t(fd_msg, keyw)
char *SCR_get_err_txt_t_lang(fd_msg, ckeyw, curlang)

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