1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="SDL_image">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="SDL_image-functions-errors.html" title="1
\82Â
\8fã">
\r
9 <title>IMG_SetError</title>
\r
12 <a href="index.html#SDL_image">
\96Ú
\8e\9f</a> - <a href="SDL_image-functions.html">3.
\8aÖ
\90\94</a> - <a href="SDL_image-functions-errors.html">3.4
\83G
\83\89\81[</a> - IMG_SetError
\r
14 <h1>IMG_SetError</h1>
\r
16 <code>void IMG_SetError(const char *fmt, ...)</code>
\r
19 \82±
\82ê
\82Í<a href="SDL_SetError.html">SDL_SetError</a>
\82Æ
\93¯
\97l
\82É<a href="IMG_GetError.html">IMG_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é.
\r
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é.
\r
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>
\r
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é.
\r
26 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
29 int myimagefunc(int i) {
\r
30 IMG_SetError("myimagefunc is not implemented! %d was passed in.",i);
\r
36 <a href="IMG_GetError.html">IMG_GetError</a>
\r
37 <h2>
\8c´
\95¶
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
38 <a href="https://www.libsdl.org/projects/SDL_image/docs/SDL_image_44.html#SEC44">3.4.1 IMG_SetError</a>
\r