abfNewRequest()
Adds a new request (data field) to the currently open datatype.
Syntax
intabfNewRequest(const char *name);
Inputs
- name
- The name of the request to be created.
Return Value
- 0
- On success
- 1
- On failure
Example
int ret;
ret = abfNewRequest("Upper Torso");
if (ret)
{
/* post error message */
}
Comments
This function must be called only after a datatype has been opened.
It is possible to have two requests in a single datatype with the same name. However, it would be impossible to read data from the second one in the program.
Multiple datatypes may contain requests with the same name.
abfNewRequest() is also known as abfCreateRequest().