<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ktrito33</author_name>
  <author_url>https://blog.hatena.ne.jp/ktrito33/</author_url>
  <blog_title>怠日記</blog_title>
  <blog_url>https://nmk365.hatenablog.jp/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>文字列の長さを取得するには strlen() を使う。文字列の長さを取得する#include size_t strlen(const char *string);引数string文字列戻り値引数 string の長さ。長さにヌル文字は含まれない。例次のプログラムは変数 buf の文字列の長さを返す。char buf[] = &quot;Hello World!&quot;; printf(&quot;%d\n&quot;, strlen(buf)); /* → 12 */マルチバイト文字の場合、その文字を表すのに必要なバイト数が返るchar 型の配列にはマルチバイト文字も格納できる。マルチバイト文字とは、その文字を表すのに2バイト以…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmk365.hatenablog.jp%2Fentry%2F20240404%2F1712163540&quot; title=&quot;C言語 - 文字列の長さを取得する | strlen() - 怠日記&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>2024-04-04 01:59:00</published>
  <title>C言語 - 文字列の長さを取得する | strlen()</title>
  <type>rich</type>
  <url>https://nmk365.hatenablog.jp/entry/20240404/1712163540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
