<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cadr</author_name>
  <author_url>https://blog.hatena.ne.jp/cadr/</author_url>
  <blog_title>cadrの日記</blog_title>
  <blog_url>https://cadr.hatenadiary.org/</blog_url>
  <categories>
    <anon>CS</anon>
  </categories>
  <description>C言語のmemsetやmemcpyは自前でforループなどをつかって同じことをやるよりも高速だと言われている。そのためか，会社でもこれらの関数が使われるプログラムを見る機会は多い。ただし，けっこう微妙な感じで。例えば，以下のような感じ。 #define LENGTH_INT 4 void hoge() { int data[100]; memset((void *) data, 0, 100 * LENGTH_INT); /* なんかテキトーな処理 */ } 「なぜsizeofを使わない？」，「void *にキャストする必要あるか？」と配属当初は思っていたのだが，郷に入っては郷に従えを地でいく…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcadr.hatenadiary.org%2Fentry%2F20090325%2F1237993633&quot; title=&quot; 型void *を引数にとる関数の使い方 - cadrの日記&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>2009-03-25 00:07:13</published>
  <title> 型void *を引数にとる関数の使い方</title>
  <type>rich</type>
  <url>https://cadr.hatenadiary.org/entry/20090325/1237993633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
