__iew_putD() – Put data

Add data to, or replace data within, a specified class and section.

Format

#include <__iew_api.h>
int __iew_putD(_IEWAPIContext *__context,
                          const char *__class, const char *__section,
                          void **__data_entry,
                          int __count, int __cursor,
                          _IEWAPIFlags__flags);

Parameters Descriptions

__context
API context is created and returned by calling __iew_openW() and is used throughout the open session.
__oldname
class name .
__section
section name.
__data_entry
input buffer, can be null when count is zero and __enddata is specified.
__count
number of data bytes or records to be inserted.
__cursor
starting position.
__flags
API flags:
  • __enddata - whether all of the sections being added by the series of this calls are complete
  • __newsect - whether a new section is being added to the workmod

Returned Value

If successful, __iew_putD() returns 0.

If unsuccessful, __iew_putD() returns nonzero.

Note: The returned value is the same as the code returned by a subsequent __iew_get_return_code().

Utilities Functions

__iew_get_reason_code()
__iew_get_return_code()