Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <shell_api.h>
  2. #include <string.h>
  3.  
  4. void shell_gets(char *str, int n)
  5. {
  6.     __shell_init();
  7.     *__shell_shm = SHELL_GETS;
  8.     __SHELL_WAIT();
  9.     strncpy(str, __shell_shm+1, n);
  10. }
  11.