def dasonw(fname, ftype, ifname, ncomch):
    """
    Internal undocumented command for creating a new DAS file
    
    :param fname: filename
    :type fname: str
    :param ftype: type
    :type ftype: str
    :param ifname: internal file name
    :type ifname: str
    :param ncomch: amount of comment area
    :type ncomch: int
    :return: Handle to new DAS file
    :rtype: int
    """
    fnamelen = ctypes.c_int(len(fname))
    ftypelen = ctypes.c_int(len(ftype))
    ifnamelen = ctypes.c_int(len(ifname))
    ncomch  = ctypes.c_int(ncomch)
    handle  = ctypes.c_int()
    fname   = stypes.stringToCharP(fname)
    ftype   = stypes.stringToCharP(ftype)
    ifname  = stypes.stringToCharP(ifname)
    libspice.dasonw_(fname, ftype, ifname, ctypes.byref(ncomch), ctypes.byref(handle), fnamelen, ftypelen, ifnamelen)
    return handle.value