|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
_vcprintf, _vcprintf_l, _vcwprintf, _vcwprintf_l
Important
|
|---|
|
|
int _vcprintf( const char* format, va_list argptr ); int _vcprintf_l( const char* format, locale_t locale, va_list argptr ); int _vcwprintf( const wchar_t* format, va_list argptr ); int _vcwprintf_l( const wchar_t* format, locale_t locale, va_list argptr );
Note de sécurité
|
|---|
|
|
|
|
|
|
|
|---|---|---|---|
|
_vtcprintf |
_vcprintf |
_vcprintf |
_vcwprintf |
|
_vtcprintf_l |
_vcprintf_l |
_vcprintf_l |
_vcwprintf_l |
|
|
|
|
|---|---|---|
|
|
|
|
|
|
|
|
// crt_vcprintf.cpp
// compile with: /c
#include <conio.h>
#include <stdarg.h>
// An error formatting function used to print to the console.
int eprintf(const char* format, ...)
{
va_list args;
va_start(args, format);
return _vcprintf(format, args);
}
int main()
{
eprintf(" (%d:%d): Error %s%d : %s\n", 10, 23, "C", 2111,
"<some error text>");
eprintf(" (Related to symbol '%s' defined on line %d).\n",
"<symbol>", 5 );
}
(10,23) : Erreur C2111 : <some error text> (lié à<symbol> » symbole « défini sur ligne 5).
Important