C2xGetTokenString
Open topic with navigation CAPL Functions » Car2x » C2xGetTokenString Valid for: CANoe DEFunction Syntax
Description
This function copies characters from the token and adds a terminating\0.
Parameters
- packet: Handle of a packet that has been created with C2xInitPacket
- protocolDesignator: Name of the protocol, e.g. geo_cnh
- tokenDesignator: Name of the token, e.g. data
- bufferSize: Size of buffer in byte. This function adds a terminating
\0. Thus the maximum number of copied characters is bufferSize-1. - buffer: Buffer in which the data are copied
Return Values
With C2xGetLastError you can check if the function has been processed successfully.- 0: —
- ≠0: Number of copied characters