These routines translate a binary CMW label or sensitivity label from binary to text and back again. When translating from a string to binary, the string can be text or hexadecimal when flag is NEW_LABEL or NO_CORRECTION. Refer to the bltos(3TSOL) and stobl(3TSOL) man pages.
See Chapter 14, Trusted X Window System for interfaces that translate binary labels to text, clip the final label according to a specified width, and use a font list for display in Motif-based graphical user interfaces (GUIs).
int bcltos(const bclabel_t *label, char **string, const int length, const int flags); int stobcl(const char *string, bclabel_t *label, const int flags, int *error); /* Translate and Clip string to length */ char *sbcltos(const bclabel_t *label, const int length); /* Translate for inclusion on printer banner and header pages */ char *bcltobanner(const bclabel_t *label, struct banner_fields *fields, const int flags);
int bsltos(const bslabel_t *label, char **string, const int length, const int flags); int stobsl(const char *string, bslabel_t *label, const int flags, int *error); /* Translate and clip string to length */ char *sbsltos(const bslabel_t *label, const int length);