fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define N 1024
  4. int main() {
  5. static char buff[N];
  6. int n;
  7.  
  8. fgets(buff, N, stdin);
  9. sscanf(buff, "%d", &n);
  10. printf("%d\n", n);
  11. return 0;
  12. }
  13. /* end */
  14.  
Success #stdin #stdout 0s 2296KB
stdin
31415926
stdout
31415926