NAME

cxTypeMismatchPtrMsg - return a suitably formatted string describing erroneous pointer data
#include <cx/TypeMismatchMsg.h>

const char *cxTypeMismatchPtrMsg( cxPortDir direction, const char *portName, const char *portType, const char *englishName, const char *memberName, const char *data, const char *portLo, const char *portHi )
character*(*) function cxTypeMismatchPtrMsg( direction, portName, portType, englishName, memberName, data, portLo, portHi )
integer direction
character*(*) portName
character*(*) portType
character*(*) englishName
character*(*) memberName
character*(*) data
character*(*) portLo
character*(*) portHi
direction
Input enumerated value indicating input (0) or output (1) port type.
portName
Input character string giving the port's name.
portType
Input character string giving the port's expected data type.
englishName
Input character string giving the label of the erroneous member.
memberName
Input character string giving the structure reference of the erroneous member.
data
Input character string giving the erroneous data value.
portLo
Input character string giving the lower limit of the acceptable data range, either zero or one.
portHi
Input character string giving the upper limit of the acceptable data range, either zero or the null-terminated empty string.
cxTypeMismatchPtrMsg returns a static character string indicating that the named member on port portName expected pointer data in the range of portLo to portHi, but received data of value data outside the range. cxTypeMismatchPtrMsg returns a static character string indicating that the named member on port portName expected pointer data in the range of portLo to portHi, but received data of value data outside the range. Should be called only with portLo equal to the string 1, indicating a non-zero pointer was desired, or with portLo and portHi both equal to the string 0, indicating a zero pointer was desired. cxTypeMismatchPtrMsg is used by the input and output data type checking routines cxPortCheckIn and cxPortCheckOut, which are automatically generated for every module in the <module>.cx.c file. cxTypeMismatchPtrMsg is provided so that users can create error messages similar to those created by the automatically generated code. cxTypeMismatchMsg(3E), cxTypeMismatchConnectMsg(3E), cxTypeMismatchPortMsg(3E)
Last modified: Mon Nov 6 16:33:51 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996