Currently, UDFs are supported by the Sybase CEP C/C++ SDK.
For much more detail, see User-Defined Functions.