{"id":33,"date":"2010-02-21T09:43:18","date_gmt":"2010-02-21T09:43:18","guid":{"rendered":"http:\/\/anyons.net\/dev\/?p=33"},"modified":"2022-07-12T14:49:20","modified_gmt":"2022-07-12T05:49:20","slug":"printf-sprintf-%ed%98%b9%ec%9d%80-format%ec%97%90%ec%84%9c-%ec%b6%9c%eb%a0%a5-%ed%95%98%eb%a0%a4%ea%b3%a0-%ed%95%a0%eb%95%8c","status":"publish","type":"post","link":"https:\/\/anyons.net\/?p=33","title":{"rendered":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c"},"content":{"rendered":"<pre class=\"lang:c++ decode:true \">unsigned int = %u\nlong = %ld\nunsigned long = %lu\nfloat = %f\ndouble = %lf\nlong double = %Lf\n16\uc9c4\uc218 = %02x\nULONGLONG = %I64d<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>unsigned int = %u long = %ld unsigned long = %lu float = %f double = %lf long double = %Lf 16\uc9c4\uc218 = %02x ULONGLONG = %I64d <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[96],"tags":[231,262,261],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-programming","tag-cpp","tag-format","tag-printf","odd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anyons.net\/?p=33\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon\" \/>\n<meta property=\"og:description\" content=\"unsigned int = %u long = %ld unsigned long = %lu float = %f double = %lf long double = %Lf 16\uc9c4\uc218 = %02x ULONGLONG = %I64d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anyons.net\/?p=33\" \/>\n<meta property=\"og:site_name\" content=\"anydragon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-21T09:43:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T05:49:20+00:00\" \/>\n<meta name=\"author\" content=\"anydragon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@anydragon\" \/>\n<meta name=\"twitter:site\" content=\"@anydragon\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"anydragon\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33\"},\"author\":{\"name\":\"anydragon\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"headline\":\"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c\",\"datePublished\":\"2010-02-21T09:43:18+00:00\",\"dateModified\":\"2022-07-12T05:49:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33\"},\"wordCount\":3,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"keywords\":[\"cpp\",\"format\",\"printf\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=33#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33\",\"url\":\"https:\\\/\\\/anyons.net\\\/?p=33\",\"name\":\"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\"},\"datePublished\":\"2010-02-21T09:43:18+00:00\",\"dateModified\":\"2022-07-12T05:49:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=33\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=33#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/anyons.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\",\"url\":\"https:\\\/\\\/anyons.net\\\/\",\"name\":\"anydragon\",\"description\":\"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang\",\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/anyons.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\",\"name\":\"anydragon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"url\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"contentUrl\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"width\":2560,\"height\":1440,\"caption\":\"anydragon\"},\"logo\":{\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\"},\"sameAs\":[\"http:\\\/\\\/anyons.net\",\"https:\\\/\\\/www.facebook.com\\\/anydragon\",\"https:\\\/\\\/x.com\\\/anydragon\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCr78KWpvmk398vPfpUTWNLg\"],\"url\":\"https:\\\/\\\/anyons.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anyons.net\/?p=33","og_locale":"ko_KR","og_type":"article","og_title":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon","og_description":"unsigned int = %u long = %ld unsigned long = %lu float = %f double = %lf long double = %Lf 16\uc9c4\uc218 = %02x ULONGLONG = %I64d","og_url":"https:\/\/anyons.net\/?p=33","og_site_name":"anydragon","article_publisher":"https:\/\/www.facebook.com\/anydragon","article_author":"https:\/\/www.facebook.com\/anydragon","article_published_time":"2010-02-21T09:43:18+00:00","article_modified_time":"2022-07-12T05:49:20+00:00","author":"anydragon","twitter_card":"summary_large_image","twitter_creator":"@anydragon","twitter_site":"@anydragon","twitter_misc":{"\uae00\uc4f4\uc774":"anydragon"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anyons.net\/?p=33#article","isPartOf":{"@id":"https:\/\/anyons.net\/?p=33"},"author":{"name":"anydragon","@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"headline":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c","datePublished":"2010-02-21T09:43:18+00:00","dateModified":"2022-07-12T05:49:20+00:00","mainEntityOfPage":{"@id":"https:\/\/anyons.net\/?p=33"},"wordCount":3,"commentCount":0,"publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"keywords":["cpp","format","printf"],"articleSection":["Programming"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anyons.net\/?p=33#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anyons.net\/?p=33","url":"https:\/\/anyons.net\/?p=33","name":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c - anydragon","isPartOf":{"@id":"https:\/\/anyons.net\/#website"},"datePublished":"2010-02-21T09:43:18+00:00","dateModified":"2022-07-12T05:49:20+00:00","breadcrumb":{"@id":"https:\/\/anyons.net\/?p=33#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anyons.net\/?p=33"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/anyons.net\/?p=33#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anyons.net\/"},{"@type":"ListItem","position":2,"name":"printf sprintf \ud639\uc740 format\uc5d0\uc11c \ucd9c\ub825 \ud558\ub824\uace0 \ud560\ub54c"}]},{"@type":"WebSite","@id":"https:\/\/anyons.net\/#website","url":"https:\/\/anyons.net\/","name":"anydragon","description":"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang","publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anyons.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":["Person","Organization"],"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b","name":"anydragon","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","url":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","contentUrl":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","width":2560,"height":1440,"caption":"anydragon"},"logo":{"@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg"},"sameAs":["http:\/\/anyons.net","https:\/\/www.facebook.com\/anydragon","https:\/\/x.com\/anydragon","https:\/\/www.youtube.com\/channel\/UCr78KWpvmk398vPfpUTWNLg"],"url":"https:\/\/anyons.net\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack-related-posts":[{"id":2442,"url":"https:\/\/anyons.net\/?p=2442","url_meta":{"origin":33,"position":0},"title":"CR LF \ucc98\ub9ac","author":"anydragon","date":"2021\ub144 11\uc6d4 10\uc77c","format":false,"excerpt":"\ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\ub4e4 \uc548\uc5d0 CRLF \ub97c \uc0ac\uc6a9\ud558\ub294 \ud30c\uc77c\uacfc LF \ub97c \uc0ac\uc6a9\ud558\ub294 \ud30c\uc77c\uc774 \ud63c\uc7ac \ub418\uc5b4 \uc788\uc744\ub54c... git\uc744 \uc0ac\uc6a9\ud55c\ub2e4\uba74... lf \ub85c\ub9cc \ucc98\ub9ac\ub97c \ud558\uace0 \uc2f6\ub2e4\uba74... git config core.autocrlf false git rm --cached -r . git reset --hard P.S. \uc774 \ucc98\ub9ac \uc774\ud6c4\uc5d0 git\uc774 \uc5f0\uacb0\uc774 \uc548\ub418\ub294 \uc0c1\ud669\uc774 \ubc1c\uc0dd\ud588\ub2e4. \uadfc\ub370 \ub2e4\uc2dc \ud574\ubcf4\ub2c8\uae4c \uc798\ub41c\ub2e4..","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1266,"url":"https:\/\/anyons.net\/?p=1266","url_meta":{"origin":33,"position":1},"title":"mybatis.net \uc790\ub8cc\ud615","author":"anydragon","date":"2017\ub144 02\uc6d4 17\uc77c","format":false,"excerpt":"CLR Type Object\/Map Property Mapping Result Class\/Parameter Class** Type Alias** System.ArrayList Yes Yes list System.Boolean Yes Yes Boolean, bool System.Byte Yes Yes Byte, byte System.Char Yes Yes Char, char System.DateTime Yes Yes dateTime, date System.Decimal Yes Yes Decimal, decimal System.Double Yes Yes Double, double System.Guid Yes Yes guid System.Hashtable Yes\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":202,"url":"https:\/\/anyons.net\/?p=202","url_meta":{"origin":33,"position":2},"title":"usb\ub97c \uc774\uc6a9\ud55c \uc708\ub3c4\uc6b0 \uc124\uce58","author":"anydragon","date":"2011\ub144 11\uc6d4 14\uc77c","format":false,"excerpt":"\uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c cmd \ucc3d \ub744\uc6c0 diskpart list disk select disk1 # list disk\uc5d0\uc11c \uc798 \uc120\ud0dd \ud574\uc57c \ud568 clean create partition primary active format fs:ntfs quick dvd \ub0b4\uc6a9\uc744 usb\ub85c \ubcf5\uc0ac \uadf8 \uc774\ud6c4\uc5d0 usb\ub85c \ubd80\ud305","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2851,"url":"https:\/\/anyons.net\/?p=2851","url_meta":{"origin":33,"position":3},"title":"Ubuntu \uc5d0 \uc0c8 disk \ucd94\uac00","author":"anydragon","date":"2022\ub144 09\uc6d4 06\uc77c","format":false,"excerpt":"sudo fdisk -l # partitioning sudo parted \/dev\/sdc mklabel new disk label type? diskname mkpart partition name? partitionname file system type? [ext2]? ext4 start? 1 end? 128GB quit # format sudo mkfs.ext4 \/dev\/sdc1 sudo fdisk -l # mount sudo mount \/dev\/sdc1 \/data \u00a0","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2589,"url":"https:\/\/anyons.net\/?p=2589","url_meta":{"origin":33,"position":4},"title":"mac osx zsh neovim \ud658\uacbd\uc124\uc815","author":"anydragon","date":"2022\ub144 07\uc6d4 02\uc77c","format":false,"excerpt":"~\/.zshrc # Set name of the theme to load --- if set to \"random\", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes #ZSH_THEME=\"robbyrussell\" ZSH_THEME=\"agnoster\" # Uncomment the following line\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2227,"url":"https:\/\/anyons.net\/?p=2227","url_meta":{"origin":33,"position":5},"title":"Ubuntu zsh vim Setting","author":"anydragon","date":"2021\ub144 03\uc6d4 30\uc77c","format":false,"excerpt":"apt install build-essential apt install net-tools apt install openssh-server systemctl enable ssh systemctl restart ssh apt install curl apt install tmux apt install mc apt install git apt install zsh sh -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh)\" chsh -s \/usr\/bin\/zsh # logout \ud544\uc694 zsh # \uc77c\ub2e8 \ud55c\ubc88 \uc2e4\ud589 git clone https:\/\/github.com\/zsh-users\/zsh-autosuggestions.git $ZSH_CUSTOM\/plugins\/zsh-autosuggestions\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":0,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}