C
cylin
Dear all,
I open a binary file and want to write 0x00040700 to this file.
how can I set write buffer?
---------------------------------------------------
typedef unsigned char UCHAR;
int iFD=open(szFileName,O_CREAT|O_BINARY|O_TRUNC|O_WRONLY,S_IREAD|S_IWRITE);
UCHAR buffer[5]; //???????????
write(iFD,buffer,5);
---------------------------------------------------
Thanks.
Regards,
cylin.
I open a binary file and want to write 0x00040700 to this file.
how can I set write buffer?
---------------------------------------------------
typedef unsigned char UCHAR;
int iFD=open(szFileName,O_CREAT|O_BINARY|O_TRUNC|O_WRONLY,S_IREAD|S_IWRITE);
UCHAR buffer[5]; //???????????
write(iFD,buffer,5);
---------------------------------------------------
Thanks.
Regards,
cylin.