<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copyChar(len, out, val):
 """append the char value in the array """

    ret = libxml2mod.xmlCopyChar(len, out, val)
    return ret