{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjavascripter.hatenablog.com%2Fentry%2F20090210%2F1234255818\" title=\"printf\u306e\u53ef\u5909\u9577\u5f15\u6570\u3068\u578b - \u7d20\u4eba\u304c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u52c9\u5f37\u3057\u3066\u3044\u305f\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","url":"https://javascripter.hatenablog.com/entry/20090210/1234255818","categories":["c"],"author_url":"https://blog.hatena.ne.jp/javascripter/","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"printf\u306e\u53ef\u5909\u9577\u5f15\u6570\u3068\u578b","blog_title":"\u7d20\u4eba\u304c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u52c9\u5f37\u3057\u3066\u3044\u305f\u30d6\u30ed\u30b0","author_name":"javascripter","blog_url":"https://javascripter.hatenablog.com/","published":"2009-02-10 17:50:18","image_url":null,"version":"1.0","height":"190","description":"printf\u306e\u7b2c\u4e8c\u4ee5\u964d\u306e\u5f15\u6570\u306b\u3044\u308d\u3044\u308d\u306a\u578b\u306e\u7269\u3092\u6e21\u305b\u308b\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u3002 \u307e\u305a\u3001\u53ef\u5909\u9577\u5f15\u6570\u3092\u4f7f\u3046\u305f\u3081\u306bstdarg.h\u3092#include\u3059\u308b\u3002 #include <stdarg.h> \u3067\u3001 void myprintf(char *format, ...); \u306e\u3088\u3046\u306b\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u5ba3\u8a00\u3059\u308b\u3002 \u95a2\u6570\u306e\u53ef\u5909\u90e8\u306f\u3069\u3093\u306a\u578b\u3067\u3082\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u3001va_arg(ap, type)\u306e\u3088\u3046\u306b\u5f15\u6570\u3092\u53d6\u308a\u51fa\u3059\u6642\u306b\u578b\u3092\u6307\u5b9a\u3059\u308b\u3002 \u3064\u307e\u308a\u3001format\u306b\"%d\"\u304c\u6e21\u3055\u308c\u305f\u3089\u3001n = va_arg(ap, int)\u306b\u306a\u308b\u3088\u3046\u306aswitch\u6587\u3092\u4f5c\u308b\u3002 #include <stdio.h> #include <stdarg.\u2026"}