On Thu, 25 Jul 2002, Thomas Arp wrote: > You'll want to keep the size_t. As the docs state, snprintf returns > the amount of characters written, which is always >= 0. Pre-standard implementations of snprintf(3) (i.e., glibc 2.0.6's) return -1 to indicate the output was truncated. Since we don't want to restrict CircleMUD to C99 conformant compilers, we don't want to use rely on the return value always being non-negative. At best, size_t causes an unnecessary unsigned cast; at worst, it breaks compatability. Thus, we definitely want to change it. -dak -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT