This example clears the session ID attribute value from recvattrs. Space is still allocated in the attribute structure, but the attribute values are NULL.
#include <tsix/t6attrs.h> #include <tsol/label.h> main() { t6attr_t recvattrs; t6mask_t recvmask, clrmask; recvmask = T6M_ALL_ATTRS; recvattrs = t6alloc_blk(recvmask); clrmask = T6M_SESSION_ID; t6clear_blk(clrmask, recvattrs); }