I was able to create UDF, following TD_GENERAL style. But it throws error when i try to run it with message "corrup stack frame". I have shared my code. This code is to remove all characters from a string. I am new to C, please let me know if you know where the issue is.