Advertisement
Guest User

test.c

a guest
Jan 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <sys/ioctl.h>
  3. #include <termios.h>
  4.  
  5. int main() {
  6.     int ret = ioctl( 0 , TIOCSTI , "echo a" ) ;
  7.     if( ret < 0 ) {
  8.         perror( "unko!" ) ;
  9.         return -1 ;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement