{"author_name":"winebarrel","blog_title":"so what","provider_url":"https://hatena.blog","width":"100%","published":"2008-03-13 00:00:00","author_url":"https://blog.hatena.ne.jp/winebarrel/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20080313%2Fp3\" title=\" Safe C String Library\u3092\u4f7f\u3063\u3066\u307f\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C\u8a00\u8a9e"],"type":"rich","height":"190","image_url":null,"url":"https://so-wh.at/entry/20080313/p3","provider_name":"Hatena Blog","version":"1.0","blog_url":"https://so-wh.at/","title":" Safe C String Library\u3092\u4f7f\u3063\u3066\u307f\u308b","description":"\u30d5\u30c4\u30fc\u306b\u4f7f\u3048\u308b\u3002\u3088\u3044\u304b\u3082\u2026 #include <stdio.h> #include \"safestr.h\" int main() { safestr_t str; str = safestr_create(\"hello, world\", 0); printf(\"%s\\n\", str); safestr_append(&str, SAFESTR_TEMP(\". hello, safestr.\")); printf(\"%s\\n\", str); safestr_replace(&str, SAFESTR_TEMP(\".\"), SAFESTR_TEMP(\";\")); printf(\"%s\\n\", st\u2026"}