{"title":"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u5206\u304b\u308a\u3065\u3089\u304b\u3063\u305f\u6587\u6cd5\u306e\u30e1\u30e2","url":"https://horiuchi.hateblo.jp/entry/20100714/1279075756","provider_name":"Hatena Blog","published":"2010-07-14 11:49:16","type":"rich","blog_title":"\u3057\u304c\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30de \u306e\u65e5\u8a18","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://horiuchi.hateblo.jp/","description":"\u5f15\u6570\u306e char[] \u578b\u304b\u3089\u6587\u5b57\u6570\u3092\u77e5\u308b \u307e\u305a\u306f\u3001char[] \u3092\u5f15\u6570\u306b\u53d7\u3051\u3066\u6587\u5b57\u6570\u3092\u77e5\u308a\u305f\u3044\u6642\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u66f8\u304d\u65b9\u3002 template<typename CharType, int N> void copy(CharType (&c)[N], const std::string& str) { std::strncpy(c, str.c_str(), N); } \u300cCharType (&c)[N]\u300d\u306e\u3068\u3053\u308d\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u666e\u6bb5\u3001\u95a2\u6570\u306e\u5f15\u6570\u306b\u53d7\u3051\u53d6\u308b\u6642\u306b\u306f\u300cchar c\u300d\u3068\u66f8\u3051\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u300cchar (&c)\u300d\u306e\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30b7\u30e5\u30ac\u30fc*1\u306a\u306e\u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u66f8\u304f\u5834\u5408\u306b\u306f\u5143\u306e\u5f62\u5f0f\u306b\u3059\u308b\u5fc5\u8981\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhoriuchi.hateblo.jp%2Fentry%2F20100714%2F1279075756\" title=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u5206\u304b\u308a\u3065\u3089\u304b\u3063\u305f\u6587\u6cd5\u306e\u30e1\u30e2 - \u3057\u304c\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30de \u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Horiuchi_H/","version":"1.0","categories":["C++"],"author_name":"Horiuchi_H","height":"190"}