Update cdata.c

Added prototype of read/write operations.