The stchar() function stores a null-terminated string in a fixed-length string, padding the end with blanks, if necessary.
This sample program is in the stchar.ec file in the demo directory.