{"id":2306,"date":"2018-05-07T19:25:37","date_gmt":"2018-05-07T10:25:37","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2306"},"modified":"2021-10-21T11:33:13","modified_gmt":"2021-10-21T02:33:13","slug":"%e5%9b%ba%e5%ae%9a%e5%b9%85%e6%95%b4%e6%95%b0%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2306","title":{"rendered":"[C\u8a00\u8a9e] \u56fa\u5b9a\u5e45\u6574\u6570\u578b"},"content":{"rendered":"<p>C\u8a00\u8a9e\u306e\u6574\u6570\u578b int \u306f\u51e6\u7406\u7cfb\u4f9d\u5b58\u3067\u3059\u3002<br \/>\nC\/C++\u306eISO\u898f\u683c(C99\u3068C++11)\u3001\u304a\u3088\u3073\u3001ITRON\u4ed5\u69d8\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u56fa\u5b9a\u5e45\u6574\u6570\u578b\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >\r\n \u7b26\u53f7    \u5e45    C99 \/ C++11    ITRON\r\n------------------------------------\r\n \u3042\u308a     8       int8_t        B\r\n \u306a\u3057     8      uint8_t       UB\r\n \u3042\u308a    16      int16_t        H\r\n \u306a\u3057    16     uint16_t       UH\r\n \u3042\u308a    32      int32_t        W\r\n \u306a\u3057    32     uint32_t       UW\r\n \u3042\u308a    64      int64_t        D\r\n \u306a\u3057    64     uint64_t       UD<\/pre>\n<p>\u203b C99 : &lt;stdint.h&gt;<br \/>\n\u203b ITRON : &lt;itron.h&gt;<\/p>\n<p>&nbsp;<\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h3>\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u5b9a\u7fa9<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >\r\n   \u578b        \u6700\u5c0f\u5024     \u6700\u5927\u5024\r\n-------------------------------\r\n  int\t    INT_MIN    INT_MAX\r\n  int8_t   INT8_MIN   INT8_MAX\r\n uint8_t      0      UINT8_MAX<\/pre>\n<p>\u203b &lt;limits.h&gt; , &lt;stdint.h&gt; \u306a\u3069<\/p>\n<p>&nbsp;<\/p>\n<h3>\u53c2\u8003\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/cpp\/cpp\/data-type-ranges\">Microsoft C++ \u300c\u30c7\u30fc\u30bf\u578b\u306e\u7bc4\u56f2\u300d<\/a><\/li>\n<li><a href=\"https:\/\/www.itmedia.co.jp\/enterprise\/articles\/0506\/13\/news006_2.html\">ITmedia \u300c64\u30d3\u30c3\u30c8\u306b\u306a\u308b\u3068\u4f55\u304c\u5909\u308f\u308b\uff1f\u2015\u201564\u30d3\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u300d<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e\u306e\u6574\u6570\u578b int \u306f\u51e6\u7406\u7cfb\u4f9d\u5b58\u3067\u3059\u3002 C\/C++\u306eISO\u898f\u683c(C99\u3068C++11)\u3001\u304a\u3088\u3073\u3001ITRON\u4ed5\u69d8\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u56fa\u5b9a\u5e45\u6574\u6570\u578b\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/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-2306","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\/2306","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=2306"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2306\/revisions"}],"predecessor-version":[{"id":4831,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2306\/revisions\/4831"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}