Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <sys/ioctl.h>
- #include <termios.h>
- int main() {
- int ret = ioctl( 0 , TIOCSTI , "echo a" ) ;
- if( ret < 0 ) {
- perror( "unko!" ) ;
- return -1 ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement