OSDN Git Service

修正
[sdl2referencejp/sdl2referencejp.git] / old / Mix_SetError.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="ja-JP">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta name="keywords" content="SDL_Mixer">
7 <link rel="top" href="index.html" title="\83z\81[\83\80">
8 <link rel="parent" href="SDL_Mixer-functions-errors.html" title="1\82Â\8fã">
9 <title>Mix_SetError</title>
10 </head>
11 <body>
12 <a href="index.html#SDL_mixer">\96Ú\8e\9f</a> - <a href="SDL_mixer-functions.html">4.\8aÖ\90\94</a> - <a href="SDL_mixer-functions-general.html">4.1\88ê\94Ê</a> - Mix_SetError
13 <hr>
14 <h1>Mix_SetError</h1>
15 <p>
16 <code>void Mix_SetError(const char *fmt, ...)</code>
17 </p>
18 <p>
19 \82±\82ê\82Í<a href="SDL_SetError.html">SDL_SetError</a>\82Æ\93¯\97l\82É<a href="Mix_GetError.html">Mix_GetError</a>(\82Ü\82½\82Í<a href="SDL_GetError.html">SDL_GetError</a>)\82Å\93¾\82ç\82ê\82é\83G\83\89\81[\83\81\83b\83Z\81[\83W\82ð\90Ý\92è\82·\82é.
20 \82±\82Ì\8aÖ\90\94\82Íprintf\82Ì\82æ\82¤\82É\90U\95\91\82¤\82ª, \83\81\83b\83Z\81[\83W\82Ì\92·\82³\82ÉSDL_ERRBUFIZE(1024)\83o\83C\83g\82Ì\90§\8cÀ\82ª\82 \82é.
21 </p>
22 <p>
23 \83t\83H\81[\83}\83b\83g\8c`\8e®\82Í\88È\89º\82Ì\82à\82Ì\82Ì\82Ý\91Î\89\9e\82·\82é: %s, %d, %f, %p<br>
24 %.2f\82Ì\82æ\82¤\82È\8ew\92è\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82È\82¢. \8fÚ\8d×\82ÍSDL\82Ì\83h\83L\83\85\83\81\83\93\83g\82É\8f\91\82©\82ê\82Ä\82¢\82é.
25 </p>
26 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
27 <code>
28 <pre>
29 int mymixfunc(int i) {
30     Mix_SetError("mymixfunc is not implemented! %d was passed in.",i);
31     return(-1);
32 }
33 </pre>
34 </code>
35 <h2>\8eQ\8fÆ</h2>
36 <a href="Mix_GetError.html">Mix_GetError</a>
37 <h2>\8c´\95\82Ö\82Ì\83\8a\83\93\83N</h2>
38 <a href="https://www.libsdl.org/projects/old/SDL_mixer/docs/SDL_mixer_13.html#SEC13">4.1.6 Mix_SetError</a>
39 <hr>
40 </body>
41 </html>