The timer_delete function deletes the specified timer,
timerid, previously created by the
timer_create(S-osr5)
function. If the timer is armed when timer_delete is
called, the behavior is as if the timer is automatically disarmed
before removal.
Return values
If successful, the timer_delete function returns a value
of zero. Otherwise, the function returns a value of -l and sets
errno to indicate the error.
Diagnostics
If any of the following conditions occur, the timer_delete
function returns -1 and sets errno to the corresponding
value:
[EINVAL]
The timer ID specified by timerid is not a valid
timer ID.