> > 普通は付くが、"n"が効いて切れたときは付かない > バッファが足りなくて切られた時も\0付くぞ > size-1の位置が\0になる snprintf() and vsnprintf() will write at most size-1 of the characters printed into the output string (the size'th character then gets the ter- minating `\0'); if the return value is greater than or equal to the size argument, the string was too short and some of the printed characters were discarded. あらほんとだ こりゃまた失礼 参考:2003/10/20(月)13時08分40秒