Junio C Hamano wrote: > "H. Peter Anvin" <hpa@zytor.com> writes: > > >>Any reason to not just do: >> >> struct frotz { >> int xyzzy; >> char nitfol[1]; /* more */ >> }; >> >>... which should work on all compilers? > > Laziness, especially to avoid having to deal with comments like > "your xmalloc(sizeof(struct frotz) + strlen(nitfol) + 1) should be > xmalloc(sizeof(struct frotz) + strlen(nitfol)), because you > have already one byte for nitfol element." > In the case of strings, that's probably a blessing (already accounted for the null byte). -hpa - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sun Jan 08 08:31:09 2006
This archive was generated by hypermail 2.1.8 : 2006-01-08 08:31:17 EST