stdlib/stdlib.h change to initstate

Andreas Jaeger aj@suse.de
Thu Feb 24 02:49:00 GMT 2000


Hi Uli,

you changed in stdlib.h without a real ChangeLog entry the state
functions for random (initstate, setstate etc.):
-extern void *initstate (unsigned int __seed, void *__statebuf,
+extern char *initstate (unsigned int __seed, char *__statebuf,
                        size_t __statelen) __THROW;

But this change is not reflected in the implememtation of these
files.  Is this required by any standards?  In this case the files
stdlib/random.c etc and include/stdlib.h should also be changed to 
use char instead of void.  I can send a patch if you confirm that 
the change from void* to char* is correct.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de


More information about the Libc-hacker mailing list