<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NeiNeigh</author_name>
  <author_url>https://blog.hatena.ne.jp/NeiNeigh/</author_url>
  <blog_title>NeiNeigh's blog</blog_title>
  <blog_url>https://neineigh.hatenablog.com/</blog_url>
  <categories>
    <anon>C言語</anon>
    <anon>開発</anon>
  </categories>
  <description>両者の違いでぐぐると，snprintf()ならバッファオーバーフロを防げるよってことが書いてあるページが多い．でも，使ってたらこんな違いもあったらメモする． コメントでこの記事に対する指摘を頂きました． この問題は解決済みです．コメントを参照してください． ソースコード とりあえずソースコードはこれ． #include &lt;stdio.h&gt; #include &lt;stdint.h&gt; int main(){ char str[128]; uint64_t uint64 = 100; str[0] = '\0'; sprintf(str, &quot;%llo&quot;, (unsigned long long)uin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneineigh.hatenablog.com%2Fentry%2F2013%2F10%2F17%2F030223&quot; title=&quot;sprintf()とsnprintf()の違い（？） - NeiNeigh&amp;#39;s blog&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>2013-10-17 03:02:23</published>
  <title>sprintf()とsnprintf()の違い（？）</title>
  <type>rich</type>
  <url>https://neineigh.hatenablog.com/entry/2013/10/17/030223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
