12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #include <stdlib.h>
- #include "pthread.h"
- #include "implement.h"
- int
- pthread_condattr_destroy (pthread_condattr_t * attr)
- {
- int result = 0;
- if (attr == NULL || *attr == NULL)
- {
- result = EINVAL;
- }
- else
- {
- (void) free (*attr);
- *attr = NULL;
- result = 0;
- }
- return result;
- }
|