Thank you for your help! Your function will accept something like: lcd_puts(&somestring); but not lcd_puts("hello"); Is there a way to change the function so that it accept a string on the fly ("hello") instead of a predefined string? Sorry for my lack of C skills. Regards, Thomas Mauricio Jancic wrote: This one works fine for me: void lcd_puts(const char * s) { LCD_RS = 1; while(*s) { lcd_putch(*s++); } } Best regards Mauricio Jancic Janso Desarrollos Microchip Consultant (54) - 11 - 4542 - 3519 -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Thomas N Sent: Domingo, 26 de Octubre de 2003 19:49 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: LCD String function Hi everyone, I have successfully written the lcd_putc() function for a graphic LCD module. So now, when I want to print a single character on the LCD, all I need to do is type: lcd_putc('X'); // to display character 'X' I want to write another lcd_puts() function (which uses lcd_putc() function) to send a _string_ to the LCD, but I don't know how to do it. I would like to write: lcd_puts("hello world"); // prints "hello world" on the LCD I am currently using C18 compiler with 18F452 micro. Please help. Thank you in advance! Thomas --------------------------------- Do you Yahoo!? Exclusive Video Premiere - Britney Spears -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.193 / Virus Database: 260.2.1 - Release Date: 22/10/2003 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.193 / Virus Database: 260.2.1 - Release Date: 22/10/2003 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. --------------------------------- Do you Yahoo!? Exclusive Video Premiere - Britney Spears -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.