td micro
Member level 5
hi...
in my project, i have to read string from pc to USART in PIC 18F. we are using C18 compiler. and then we have to compare it with one predefined string.
i saw
getsUSART(a,7); but in this, we have to add exact 7 characters.but the length of the string is unknown..so how can we read one string with unknown length?
and how to compare it with predefined string? plz help me.....
thank you
in my project, i have to read string from pc to USART in PIC 18F. we are using C18 compiler. and then we have to compare it with one predefined string.
i saw
getsUSART(a,7); but in this, we have to add exact 7 characters.but the length of the string is unknown..so how can we read one string with unknown length?
and how to compare it with predefined string? plz help me.....
thank you