<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NeoCat</author_name>
  <author_url>https://blog.hatena.ne.jp/NeoCat/</author_url>
  <blog_title>Okiraku Programming</blog_title>
  <blog_url>https://neocat.hatenablog.com/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>Pascal文字列をgccで使うメモ。Pascal文字列とは、 [文字列長] [A] [B] [C]というバイト列で表現される文字列。文字列長が1byteなので、長さの上限は255byte。型はunsigned char[]。普通のC文字列は [A] [B] [C] [\0]とNULL終端で表されますが、Pascal文字列の場合、本来NULL終端は必要ない。 が、gccの場合、C文字列としても扱えるように、NULL終端を付与するみたい。 以下、例。 #include &lt;unistd.h&gt; int main(int argc, char *argv[]) { unsigned char a[] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneocat.hatenablog.com%2Fentry%2F20110714%2F1310657281&quot; title=&quot;Pascal文字列 - Okiraku Programming&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>2011-07-14 00:28:01</published>
  <title>Pascal文字列</title>
  <type>rich</type>
  <url>https://neocat.hatenablog.com/entry/20110714/1310657281</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
