{"id":2842,"date":"2018-12-10T14:06:13","date_gmt":"2018-12-10T05:06:13","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2842"},"modified":"2021-09-09T08:25:23","modified_gmt":"2021-09-08T23:25:23","slug":"c-%e8%87%aa%e5%b7%b1%e5%8f%82%e7%85%a7%e3%81%99%e3%82%8b%e8%a6%81%e7%b4%a0%e3%82%92%e3%82%82%e3%81%a4%e6%a7%8b%e9%80%a0%e4%bd%93%e5%ae%9a%e7%be%a9","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2842","title":{"rendered":"[C] \u81ea\u5df1\u53c2\u7167\u3059\u308b\u8981\u7d20\u3092\u3082\u3064\u69cb\u9020\u4f53\u5b9a\u7fa9"},"content":{"rendered":"<h3>1. \u75c7\u72b6<\/h3>\n<p>\u81ea\u5df1\u53c2\u7167\u3059\u308b\u8981\u7d20\u3092\u6301\u3064\u69cb\u9020\u4f53\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3068\u306a\u308b<\/p>\n<h4>1.1. \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h4>\n<pre class=\"lang:c decode:true \">typedef struct st_node {\r\n  int id;\r\n  NODE *node;\r\n} NODE;<\/pre>\n<h4>1.2. \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/h4>\n<pre><code>sample.c:6:3: error: unknown type name \u2018NODE\u2019\r\n   NODE *node;<code><\/pre>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>2. \u56de\u907f\u7b56<\/h3>\n<p>typedef \u3068 \u69cb\u9020\u4f53\u5ba3\u8a00\u3092\u5206\u96e2\u3059\u308b\u3002\u69cb\u9020\u4f53 st_node \u306e\u5ba3\u8a00\u524d\u3067\u3042\u3063\u3066\u3082 typedef \u306f\u6210\u529f\u3059\u308b\u3002<\/p>\n<pre class=\"lang:c decode:true \">typedef  struct st_node  NODE;\r\n\r\nstruct st_node {\r\n  int id;\r\n  NODE *node;\r\n};<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \u75c7\u72b6 \u81ea\u5df1\u53c2\u7167\u3059\u308b\u8981\u7d20\u3092\u6301\u3064\u69cb\u9020\u4f53\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3068\u306a\u308b 1.1. \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 typedef struct st_node { int id; NODE *node; } NODE; 1.2. \u30a8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[80],"class_list":["post-2842","post","type-post","status-publish","format-standard","hentry","category-memo","tag-c"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2842"}],"version-history":[{"count":6,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2842\/revisions"}],"predecessor-version":[{"id":2856,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2842\/revisions\/2856"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}