SIM900A GSM Modem code required

i am in need of arduino uno codes to send msg using SIM900A module.....pls

In setup() set the SIM900(A)to text mode (AT+CMGF).

To send an sms send the command to initiate the process (AT+CMGS) with recipients number (in international format). This is the followed by the message, and then ctrl-z.