The only C code that Digi provides is used for the programmable xbee product.
As far as Digi is concerned, you would write the UART functionality just like you would if the XBee was not being used. That is data in = data out. May I suggest you start with that.