The following functions provide for communication using atoms and functors.
const char*PL_atom_charsatom_t atom Return a C-string for the text represented by the given atom. The returned text will not be changed by Prolog. It is not allowed to modify the contents, not even `temporary' as the string may reside in read-only memory.
functor_tPL_new_functoratom_t name, int arity Returns a functor identifier, a handle for the name/arity pair. The returned handle is valid for the entire Prolog session. atom_tPL_functor_namefunctor_t f Return an atom representing the name of the given functor. intPL_functor_arityfunctor_t f Return the arity of the given functor.