Shapes box characters.
Layout Library (libi18n.a)
#include <sys/lc_layout.h>int layout_object_shapeboxchars
(layout_object,InpBuf,InpSize,OutBuf)
LayoutObject layout_object;
const char *InpBuf;
const size_t InpSize;
char *OutBuf;
The layout_object_shapeboxchars subroutine shapes box characters into the VT100 box character set.
Item | Description |
---|---|
layout_object | Specifies the LayoutObject structure created by the layout_object_create subroutine. |
InpBuf | Specifies the source text to be processed. |
InpSize | Specifies the number of code elements to be processed. |
OutBuf | Contains the shaped output text. |
Upon successful completion, this subroutine returns a value of 0.
If this subroutine fails, it returns the following values:
Item | Description |
---|---|
LAYOUT_EILSEQ | Shaping stopped due to an input code element that cannot be mapped into the VT100 box character set. |
LAYOUT_EINVAL | Shaping stopped due to an incomplete code element or shift sequence at the end of the input buffer. |