Given the following code: sqlite3_create_function(db,"daysinmonth",3,cf_flags,0,days_in_month,0,0); sqlite3_create_function(db,"dim",3,cf_flags,0,days_in_month,0,0); Is there a way for the function days_in_month() to identify which form was used in the SQL - DaysInMonth() or DIM() ?