Open topic with navigation CAPL Functions » General » Function Overview » snprintfDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
snprintf
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
This function corresponds to the C functionsprintf. Supplementally, the parameter len indicates the maximum length of the array dest. The format string has the same meaning as with the function write and is described there.
Note: CAPL supports a function call with maximum 64 parameters.
Parameters
- dest: Character buffer to print to.
- len: Maximum number of characters printed to buffer including terminating ‘\0’. Must be at most the size of the buffer.
- format: Formatted string printed to buffer.