<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Windows</anon>
    <anon>プログラミングTips</anon>
  </categories>
  <description>Visual C++のC Runtime (CRT) ライブラリは、バージョン2015 (14.0) 以降、新しい設計のUniversal CRT (UCRT) を採用するようになり、C/C++標準ライブラリが再実装されました。 その際、かなりの数のバグが混入したのですが*1*2、いまだに修正されていないバグもいくつかあります。例えば、以下のリファレンスでは、swprintf()でWEOFを出力しようとした場合、戻り値はエラーコード-1を返すことが明記されており、サンプルコードでも例示されているのですが、UCRTでは間違った値を返します。 sprintf, _sprintf_l, swprin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2021%2F07%2F25%2F230020&quot; title=&quot;MSVC (ユニバーサルCRT) のswprintfのバグ - syghの新フラグメント置き場&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-25 23:00:20</published>
  <title>MSVC (ユニバーサルCRT) のswprintfのバグ</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2021/07/25/230020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
