User mfoley ( posted:

The reason for this apparent inconsistency is that the default mode is read
mode and the second argument is optional.

When you want something other than read mode you have to pass the correct
DDT_MODE_READWRITE is defined to be 1

Hope this helps,

this is in response to:

I found that DDT_MODE operations (DT_MODE_READ and
DDT_MODE_READWRITE) are NOT consistant with

While, opening the file in read mode, I can give

ddt_open(text, ddt_mode_read);
ddt_open(text, ddt_MODE_read);
ddt_open(text, DDT_MODE_READ);