Several source code examples are available in the %XSI_HOME%/XSISDK folder:
colour_mix
mix
pinchpick
swirl
swirldraw
Additional Reference Information
For complete details about the functions available for creating custom Fx operators, see the UFO Library Functions and the UFO User Functions on the Softimage Wiki.