UART function between PIC16F628A & XbeePro..

I using C compiler tx,pin 8 and Rx,pin 7,
My target is enable UART between pic 16F628A and XbeePro
Rx,Tx.
Ur guys got any idea how to write C compiler
for UART between XbeePro,below is the sample function
of UART,but I don't how to modify into C compiler language.
Thank in advance...
void xbee_init(void)
{
uart_str("+++");//send command to enter XBee Pro command mode
delay_ms(200);// waiting for finish sending and XBee respond
uart_str("atmy1111");//send command to setting Source address
uart_send(0xD);// 0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atwr");// send "WR" (write)command to SKXBee
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atdl2222");// send command to setting Destination address
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atwr");//send "WR" (write)command to SKXBee
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atcn");// send command for Exit AT Command Mode
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
}
My target is enable UART between pic 16F628A and XbeePro
Rx,Tx.
Ur guys got any idea how to write C compiler
for UART between XbeePro,below is the sample function
of UART,but I don't how to modify into C compiler language.
Thank in advance...
void xbee_init(void)
{
uart_str("+++");//send command to enter XBee Pro command mode
delay_ms(200);// waiting for finish sending and XBee respond
uart_str("atmy1111");//send command to setting Source address
uart_send(0xD);// 0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atwr");// send "WR" (write)command to SKXBee
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atdl2222");// send command to setting Destination address
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atwr");//send "WR" (write)command to SKXBee
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
uart_str("atcn");// send command for Exit AT Command Mode
uart_send(0xD);//0XD is hexa code of "Enter"key
delay_ms(200);
}