www.delorie.com/djgpp/bugs/show.cgi | search |
The libc docs in 2.01 omit a description of the srand() function. rand(), random(), and srandom() are all described, but srand() is not.
Also missing from the v2.x docs, but present in v1.x, is a separate entry for the va_list type. Instead, the description of va_list and the related macros va_start(), va_arg(), and va_end() seems to be scattered around the various functions that use the va_list data type, without a clear explanation of their usage. This is somewhat annoying, and potentially dangerous to those users who are unfamiliar with the va_args system.
I also can't seem to get srand() to work at all. So I use random() and srandom() instead. Anyone know why srand() seems to do sweet FA? Rob
Upgrade to v2.02.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |