{"blog_title":"Shammer's Philosophy","author_name":"shammer","categories":["C"],"provider_name":"Hatena Blog","version":"1.0","height":"190","width":"100%","published":"2010-06-16 00:00:00","description":"\u6587\u5b57\u5217\u306e\u9023\u7d50-snprintf_ver1 - Shammerism\u306e\u554f\u984c\u3092\u4fee\u6b63\u3002 #include <stdio.h> #include <stdlib.h> #include <string.h> char * returnString(char * v){ char * prefix = \"[RES]\"; int length = strlen(prefix) + strlen(v) + 1;// 1 is for '\\0' char * response = (char *)malloc(length); snprintf(response, length, \"%s%s\", prefix\u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/shammer/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshammerism.hatenadiary.com%2Fentry%2F20100616%2Fp1\" title=\"\u6587\u5b57\u5217\u306e\u9023\u7d50-snprintf_ver2 - Shammer&#39;s Philosophy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://shammerism.hatenadiary.com/entry/20100616/p1","image_url":null,"title":"\u6587\u5b57\u5217\u306e\u9023\u7d50-snprintf_ver2","blog_url":"https://shammerism.hatenadiary.com/"}