fork download
  1. #include <conio.h>
  2. #include <stdio.h>
  3.  
  4. void botan(int *b)
  5. {
  6. do{
  7. *b=getch( );
  8. }while(*b!=0x0D);
  9. }
  10.  
  11. int main()
  12. {
  13. int f;
  14.  
  15. printf("ENTERを押して終了\n");
  16. botan(&f);
  17. return 0;
  18. }
  19.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty