src/console/conio.c
static void
insert_space(char *curline, int curline_len)
{
   int i;

   if (cp >= cl || cl+1 > curline_len) {
      return;
   }
   /* Note! source and destination overlap */
   memmove(&curline[cp+1],&curline[cp],i=cl-cp);
   cl++;
   curline[cp] = ' ';
   i = 0;
   while (cl > cp) {
      forward(curline, curline_len);
      i++;
   }
   while (i--) {
      backup(curline);
   }
}
/* Insert a space at the current cursor position */
Insert a space at the current cursor position
Insert a space at the current cursor position
static void
insert_space(char *curline, int curline_len)
{
   int i;
   if (cp >= cl || cl+1 > curline_len) {
      return;
   }
   memmove(&curline[cp+1],&curline[cp],i=cl-cp);
   cl++;
   curline[cp] = ' ';
   i = 0;
   while (cl > cp) {
      forward(curline, curline_len);
      i++;
   }
   while (i--) {
      backup(curline);
   }
}
static void insert_space ( char * curline , int curline_len ) { int i ; if ( cp >= cl || cl + 1 > curline_len ) { return ; } memmove ( & curline [ cp + 1 ] , & curline [ cp ] , i = cl - cp ) ; cl ++ ; curline [ cp ] = ' ' ; i = 0 ; while ( cl > cp ) { forward ( curline , curline_len ) ; i ++ ; } while ( i -- ) { backup ( curline ) ; } }
Insert a space at the current cursor position
Insert a space at the current cursor position
/* Note! source and destination overlap */