What is error code of adl_fsWrite()?


#1

What is error code of adl_fsWrite()?

I want to know the returned error code when adl_fsWrite() failed.
Is a value 0 when it fails?


#2

Hi,

adl_fsWrite() returns the number of written bytes. 0 means no bytes has been written.
Usually, we use it like that:

if (adl_fsWrite(string,1,3,file)!=3)
{
/* write 3bytes */
printf (“not all items written”);
}

Thanks.


#3

Thaks you for answer.