On 07/02/18 20:00, Michael Fritscher wrote:
Hello,
main.c:20:5: warning: incompatible implicit declaration of built-in
function ‘memset’ [enabled by default]
memset( &array, 0, blocks * sizeof(int) );
at least my compiler says something about
a.c:21:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
And yes, the first recipe does indeed help :-P
Thank you both! Perfect!
I think actually stdlib had fixed the malloc problem, but I missed it
because the memset problem was still there.
Cheers,
Wol
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html