From 12f9044ced04b7dd40baaca2d0a8f6a7a99b22c4 Mon Sep 17 00:00:00 2001 From: maruhiro Date: Mon, 4 Feb 2019 21:27:07 +0900 Subject: [PATCH] =?utf8?q?SDL=5FCreateThread=20=E3=82=B5=E3=83=B3=E3=83=97?= =?utf8?q?=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= =?utf8?q?=20https://wiki.libsdl.org/SDL=5FCreateThread=3Faction=3Ddiff&re?= =?utf8?q?v1=3D27&rev2=3D28?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SDL_CreateThread.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SDL_CreateThread.html b/SDL_CreateThread.html index 35ab7f4..c05cb42 100644 --- a/SDL_CreateThread.html +++ b/SDL_CreateThread.html @@ -37,7 +37,7 @@ static int TestThread(void *ptr) int cnt; for (cnt = 0; cnt < 10; ++cnt) { - printf("\nƒXƒŒƒbƒhƒJƒEƒ“ƒ^: %d", cnt); + printf("ƒXƒŒƒbƒhƒJƒEƒ“ƒ^: %d\n", cnt); SDL_Delay(50); } @@ -49,16 +49,16 @@ int main(int argc, char *argv[]) SDL_Thread *thread; int threadReturnValue; - printf("\n’Pƒ‚ÈSDL_CreateThread‚̃eƒXƒg:"); + printf("’Pƒ‚ÈSDL_CreateThread‚̃eƒXƒg:\n"); /* ’P‚ɃXƒŒƒbƒh‚𐶐¬‚·‚é */ thread = SDL_CreateThread(TestThread, "TestThread", (void *)NULL); if (NULL == thread) { - printf("\nSDL_CreateThread Ž¸”s: %s\n", SDL_GetError()); + printf("SDL_CreateThread Ž¸”s: %s\n", SDL_GetError()); } else { SDL_WaitThread(thread, &threadReturnValue); - printf("\nƒXƒŒƒbƒh‚Ì–ß‚è’l: %d", threadReturnValue); + printf("ƒXƒŒƒbƒh‚Ì–ß‚è’l: %d\n", threadReturnValue); } return 0; -- 2.11.0