fwrite() takes a const void *p, but stdio declares just a void *p.
Is there a reason for the difference?
diff -p -purN klibc-0.186/include/stdio.h klibc-0.186.fwrite/include/stdio.h
--- klibc-0.186/include/stdio.h 2004-07-28 23:09:59.000000000 +0200
+++ klibc-0.186.fwrite/include/stdio.h 2004-10-19 20:06:30.000000000 +0200
@@ -90,7 +90,7 @@ fread(void *__p, size_t __s, size_t __n,
}
extern __inline__ size_t
-fwrite(void *__p, size_t __s, size_t __n, FILE *__f)
+fwrite(const void *__p, size_t __s, size_t __n, FILE *__f)
{
return _fwrite(__p, __s*__n, __f)/__s;
}
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n?RNBERG