Vantage does not truncate VARCHAR or VARBYTE return values.
Any attempt by the function to return a VARCHAR or VARBYTE value where the length is greater than the length specified in the RETURNS clause of the CREATE FUNCTION or REPLACE FUNCTION statement generates a 7509 error.
For details on using the C types that map to VARCHAR and VARBYTE, see SQL Data Type Mapping.