@spiceErrorCheck<EOL>def ekbseg(handle, tabnam, cnames, decls):
handle = ctypes.c_int(handle)<EOL>tabnam = stypes.stringToCharP(tabnam)<EOL>ncols  = ctypes.c_int(len(cnames))<EOL>cnmlen = ctypes.c_int(len(max(cnames, key=len)) + <NUM_LIT:1>) <EOL>cnames = stypes.listToCharArrayPtr(cnames)<EOL>declen = ctypes.c_int(len(max(decls, key=len)) + <NUM_LIT:1>)<EOL>decls = stypes.listToCharArrayPtr(decls)<EOL>segno = ctypes.c_int()<EOL>libspice.ekbseg_c(handle, tabnam, ncols, cnmlen, cnames, declen, decls, ctypes.byref(segno))<EOL>return segno.value<EOL>
Start a new segment in an E-kernel.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekbseg_c.html

:param handle: File handle.
:type handle: int
:param tabnam: Table name.
:type tabnam: str
:param cnames: Names of columns.
:type cnames: list of str.
:param decls: Declarations of columns.
:type decls: list of str.
:return: Segment number.
:rtype: int