RTI Connext DDS Micro C API
Version 4.1.0
|
Functions | |
RTI_SIZE_T | OSAPI_String_length (const char *s) |
Return length of ASCIIZ string. | |
RTI_INT32 | OSAPI_String_cmp (const char *left, const char *right) |
Compare two ASCIIZ strings. | |
RTI_INT32 | OSAPI_String_ncmp (const char *left, const char *right, RTI_SIZE_T num) |
Return the process ID. |
RTI_SIZE_T OSAPI_String_length | ( | const char * | s | ) |
Return length of ASCIIZ string.
Return length of ASCIIZ string not including \0.
[in] | s | Pointer to beginning of byte string. |
RTI_INT32 OSAPI_String_cmp | ( | const char * | left, |
const char * | right | ||
) |
Compare two ASCIIZ strings.
Lexicographically compare the null-terminated strings l and r. The comparison is using unsigned arithmetic.
[in] | left | Left side string. |
[in] | right | Right side string. |
RTI_INT32 OSAPI_String_ncmp | ( | const char * | left, |
const char * | right, | ||
RTI_SIZE_T | num | ||
) |
Return the process ID.
Lexicographically compare null-terminated strings l and r, including up to num characters (if the null terminator is not found before the specified number of characters has been compared). The comparison uses unsigned arithmetic.
[in] | left | Left side string. |
[in] | right | Right side string. |
[in] | num | Maximum number of characters to compare. |