<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>ランキング参加中プログラミングprintfで文字列の最大文字数を指定する - 揮発性のメモ２ 1234567890123456 じゃがいも :A ^^^^^^^^^^^^^^^^ ↑16文字 日本語混じりで桁を揃えてprintfで出力したい localeをちゃんと設定してwcharを使うべきだが、できないときもある 環境を整えたくないので、とりあえずできる限りの手抜きをする // 補正前 printf(&quot;%-16s:A&quot;, &quot;じゃがいも&quot;); printf(&quot;%-16s:A&quot;, &quot;ターボR&quot;); 1234567890123456 じゃがいも :A ターボR :Aずれてしまう。 なぜかというと、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20240724%2Fprintf&quot; title=&quot; printfでUTF8混じりの文字列の最大文字数を指定する - 揮発性のメモ２&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1685946694840016</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-24 08:30:00</published>
  <title> printfでUTF8混じりの文字列の最大文字数を指定する</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20240724/printf</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
