DES Encryption

I have to implement DES Encryption in Dynamic C with the following method for encrypting plain text:
[b][b]Algorithm : DESede
Mode: ECB
Padding: PKCS5Padding

I am using Rabbit RCM3720 with Dynamic C 9.21.
If any one have some sample code or library, please share with me. Pls help.