NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Functions

size_t NvOsStrlen (const char *s)
 This function counts string length. More...
 
NvS32 NvOsVsnprintf (char *str, size_t size, const char *format, va_list ap)
 This function produces a string according format parameter and ap parameter. And the maximum length of produced string, is limited by size parameter. More...
 
NvS32 NvOsSnprintf (char *str, size_t size, const char *format,...)
 This function produces a string according format parameter, variable-argument list and size parameter. The maximum length of produced string, is limited by size parameter. More...
 

Function Documentation

◆ NvOsSnprintf()

NvS32 NvOsSnprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)

This function produces a string according format parameter, variable-argument list and size parameter. The maximum length of produced string, is limited by size parameter.

Parameters
[out]strString pointer where the produced string is stored, passed to buf parameter of vsnprintf() in QNX libc
[in]sizeMaximum length of produced string, passed to count parameter of vsnprintf() in QNX libc
[in]formatFormatting string which follow a standard of printf(), passed to format parameter of vsnprintf() in QNX libc
Returns
Return value of vsnprintf() in QNX libc
0 Error if str filename or format is NULL
Note
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsStrlen()

size_t NvOsStrlen ( const char *  s)

This function counts string length.

Parameters
[in]sString pointer to count length, passed to s parameter to strlen() in QNX libc
Returns
Return value of strlen() in QNX libc
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsVsnprintf()

NvS32 NvOsVsnprintf ( char *  str,
size_t  size,
const char *  format,
va_list  ap 
)

This function produces a string according format parameter and ap parameter. And the maximum length of produced string, is limited by size parameter.

Parameters
[out]strString pointer where the produced string is stored, passed to buf parameter of vsnprintf() in QNX libc
[in]sizeMaximum length of produced string, passed to count parameter of vsnprintf() in QNX libc
[in]formatFormatting string which follow a standard of printf(), passed to format parameter of vsnprintf() in QNX libc
[in]apVariable-argument list as per format parameter, passed to arg parameter of vsnprintf() in QNX libc
Returns
Return value of vsnprintf() in QNX libc
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes