Lines Matching defs:ptr
210 CHAR *ptr = buf;
214 while ((*ptr = (UINT8)UartGetc()) != 0 && *ptr != 13) {
215 if (*ptr == '\x03') { /* ctrl + c */
217 ptr = buf;
220 if (*ptr == '\b' && ptr != buf) { /* support backspace */
222 ptr--;
225 if (!VISIABLE_CHAR(*ptr)) {
228 PRINTK("%c", *ptr);
229 if ((ptr - buf) == (sizeof(buf) - 1)) {
232 ptr++;
234 if (ptr != buf) {
235 if (*ptr == 13 || ((ptr - buf) == (sizeof(buf) - 1))) {
236 *ptr = '\0';
237 ptr = buf;
242 } else if (*ptr == 13) {