{"id":1073,"date":"2000-12-06T13:37:34","date_gmt":"2000-12-06T04:37:34","guid":{"rendered":"http:\/\/terzeron.com\/?p=1073"},"modified":"2000-12-06T13:37:34","modified_gmt":"2000-12-06T04:37:34","slug":"c-stdin%ec%97%90-%eb%8c%80%ed%95%b4-fflush-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/terzeron.com\/?p=1073","title":{"rendered":"[C] Input stream\uc5d0 \ub300\ud55c fflush() \ud638\ucd9c\uc774 \uac00\ub2a5\ud55c\uac00?"},"content":{"rendered":"<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): vness (\uad6c\ub9ac)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 6\uc77c \uc218\uc694\uc77c \uc624\uc804 10\uc2dc 36\ubd84 29\ucd08<br \/>\n\uc81c \ubaa9(Title): [\uc9c8\ubb38]fflush(stdin)..<\/p>\n<p>C FAQ\uc5d0 \ubcf4\uba74.. fflush()\ub294 output stream\uc5d0 \ub300\ud574\uc11c\ub9cc \uc801\uc6a9\uc774 \ub41c\ub2e4\uace0 \ud569\ub2c8\ub2e4. \uc81c\uac00 \uc54c\uace0 \uc788\uae30\ub85c\ub294 input stream\uc774\ub4e0, output stream\uc774\ub4e0 \ub2e4 \uc801\uc6a9\ub418\ub294 \uac78\ub8e8 \uc54c\uace0 \uc788\uc5c8\uac70\ub4e0\uc694. \ub610 \uc2e4\uc81c\ub85c \uc0ac\ub78c\ub4e4\ub3c4 fflush(stdin)\uc774\ub77c\ub294 \uad6c\ubb38\uc744 \ub9ce\uc774 \uc0ac\uc6a9\ud558\uae30\ub3c4 \ud558\uace0\uc694.<\/p>\n<p>fflush()\uac00 output stream\uc5d0 \ub300\ud574\uc11c\ub9cc \uc801\uc6a9\ub41c\ub2e4\ub77c\uace0 \uc5b8\uae09\ub418\uc5b4 \uc788\ub294 reference\uac00 \uc788\ub294 \uac74\uac00\uc694?<\/p>\n<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): terzeron (microkid)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 6\uc77c \uc218\uc694\uc77c \uc624\uc804 10\uc2dc 53\ubd84 30\ucd08<br \/>\n\uc81c \ubaa9(Title): Re: [\uc9c8\ubb38]fflush(stdin)..<\/p>\n<p>fflush\uac00 istream\uc5d0\ub3c4 \ub41c\ub2e4\ub294 \uc774\uc57c\uae30\ub294 \ucc98\uc74c \ub4e4\uc5b4\ubd24\uc9c0\ub9cc, Solaris \ub9e4\ub274\uc5bc\uc5d0\ub294 output stream\uc774\ub098 update stream\uc5d0 \uc0ac\uc6a9\ud55c\ub2e4\uace0(\ub9cc) \ub098\uc640 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>DESCRIPTION<br \/>\nIf stream points to an output stream or an update stream in<br \/>\nwhich the most recent operation was not input, fflush()<br \/>\ncauses any unwritten data for that stream to be written to<br \/>\nthe file, and the st_ctime and st_mtime fields of the under-<br \/>\nlying file are marked for update.<\/p>\n<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): asiawide (\uc7ac\ubbfc\uc774)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 6\uc77c \uc218\uc694\uc77c \uc624\uc804 10\uc2dc 54\ubd84 53\ucd08<br \/>\n\uc81c \ubaa9(Title): Re: [\uc9c8\ubb38]fflush(stdin)..<\/p>\n<p>FAQ \uc5d0 \ubcf4\uba74 \uc2dc\uc2a4\ud15c\uc5d0 \ub530\ub77c \ub2e4\ub974\ub2e4 \uace0 \ub418\uc5b4 \uc788\uc9c0 \uc54a\ub098\uc694?<\/p>\n<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): terzeron (microkid)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 6\uc77c \uc218\uc694\uc77c \uc624\ud6c4 01\uc2dc 37\ubd84 30\ucd08<br \/>\n\uc81c \ubaa9(Title): Re: [\uc9c8\ubb38]fflush(stdin)..<\/p>\n<p>\ucc3e\uc544\ubcf4\ub2c8\uae4c, fflush\ub97c input stream\uc5d0 \uc0ac\uc6a9\ud558\ub294 \uac83\uc740 ANSI C\uc5d0\uc11c\ub294 \uae08\uc9c0\ud558\ub294 \uc0ac\ud56d\uc778\ub370, printf\uc640 scanf\ub97c \uc0ac\uc6a9\ud558\ub294 \uacf3\uc5d0\uc11c \ub354\ub7ec \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4\uace0 \ud569\ub2c8\ub2e4.<\/p>\n<p>fflush(stdin)\ud558\uac8c \ub418\uba74 &#8220;input buffer\uc5d0 \ub4e4\uc5b4 \uc788\ub294 \ub0b4\uc6a9\uc5d0 \ubcc4 \uad00\uc2ec\uc774 \uc5c6\uc73c\ub2c8\uae4c \uc774\uc81c \ub2e4 \uc9c0\uc6cc\ubc84\ub824\ub77c&#8221;\ub77c\ub294 \ub73b\uc774\ub78d\ub2c8\ub2e4.<\/p>\n<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): terzeron (microkid)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 7\uc77c \ubaa9\uc694\uc77c \uc624\ud6c4 03\uc2dc 51\ubd84 51\ucd08<br \/>\n\uc81c \ubaa9(Title): Re: [\uc9c8\ubb38]fflush(stdin)..<\/p>\n<p>\uc5b4\uc81c \ucc3e\uc544\ubcf8 \uac78 \uae4c\uba39\uc5b4\uc11c \uc624\ub298 \ub2e4\uc2dc \ucc3e\uc544\ubcf4\ub290\ub77c \uc880 \ud5e4\ub9f8\uc2b5\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/www.magi.com\/~anderson\/cpitfall\/pit17.html\">http:\/\/www.magi.com\/~anderson\/cpitfall\/pit17.html<\/a><br \/>\n<a href=\"http:\/\/www.eskimo.com\/~scs\/C-faq\/q12.26.html\">http:\/\/www.eskimo.com\/~scs\/C-faq\/q12.26.html<\/a><br \/>\n<a href=\"http:\/\/web.onetelnet.ch\/~twolf\/tw\/c\/getting_input.html#type_ahead\">http:\/\/web.onetelnet.ch\/~twolf\/tw\/c\/getting_input.html#type_ahead<\/a><\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/terzeron.com\/?p=1073\"\n\t\t\t  \tdata-numposts = \"100\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"time\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground: #ffffff !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>[ CnUnix ] in KIDS \uae00 \uc4f4 \uc774(By): vness (\uad6c\ub9ac) \ub0a0 \uc9dc (Date): 2000\ub144 12\uc6d4 6\uc77c \uc218\uc694\uc77c \uc624\uc804 10\uc2dc 36\ubd84 29\ucd08 \uc81c \ubaa9(Title): [\uc9c8\ubb38]fflush(stdin).. C FAQ\uc5d0 \ubcf4\uba74.. fflush()\ub294 output stream\uc5d0 \ub300\ud574\uc11c\ub9cc \uc801\uc6a9\uc774 \ub41c\ub2e4\uace0 \ud569\ub2c8\ub2e4. \uc81c\uac00 \uc54c\uace0 \uc788\uae30\ub85c\ub294 input stream\uc774\ub4e0, output &hellip; <a href=\"https:\/\/terzeron.com\/?p=1073\">\uacc4\uc18d \uc77d\uae30 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1073"}],"version-history":[{"count":0,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions"}],"wp:attachment":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}