UTILS_TimespecAddNanoseconds() function
Calculates pxResult = x + ( struct timespec ) nanosec.
Syntax
int UTILS_TimespecAddNanoseconds( struct timespec * const pxResult,
const struct timespec * const x,
int64_t llNanoseconds );
Arguments
pxResult
Where the result of the calculation is stored.
x
The first argument for addition.
llNanoseconds
The second argument for addition.
Return value
-1 if pxResult or x was NULL; 1 if result is negative; otherwise, 0.