M
mohammad.nabil.h
hello, it's me again.
i was implementing a DBMS, as usual, where i needed to call fwrite
using 8-byte integer as the length of the data to be written ( just in
case there is data bigger than 2 GB, which may happen ).
The problem is that fwrite takes a size_t ( an unsiged 4-byte integer
), not 8-byte integer. i also can't play the trick of dividing the
length between the _Size and _Count parameters because their
multiplication is also unsigned int ( in the fwrite implementation ).
My question is, does there exist any IO function that writes data whose
length requires 8-byte integer ?
i was implementing a DBMS, as usual, where i needed to call fwrite
using 8-byte integer as the length of the data to be written ( just in
case there is data bigger than 2 GB, which may happen ).
The problem is that fwrite takes a size_t ( an unsiged 4-byte integer
), not 8-byte integer. i also can't play the trick of dividing the
length between the _Size and _Count parameters because their
multiplication is also unsigned int ( in the fwrite implementation ).
My question is, does there exist any IO function that writes data whose
length requires 8-byte integer ?