#include #include #include #include #define getch() get_character() #define putch(CHAR) lcd_putch(CHAR) const char password[] = "jiffy"; char input_string[6]; char get_character(void) { char ch; ch = '\0'; /* get a character from somewhere */ return(ch); } void lock(void) { /* lock something */ } void unlock(void) { /* unlock something */ } void main(void) { lock(); gets(input_string,sizeof(input_string)); if( strcmp(password,input_string) == 0 ) unlock(); while(1); }