fork(3) download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char c;
  5. int znaki = 0;
  6. while((c=getchar())!='\n')
  7. ++znaki;
  8. printf("W tekscie bylo %d znakow", znaki);
  9. return 0;
  10. }
Success #stdin #stdout 0s 2296KB
stdin
12345
tego nie policzy
stdout
W tekscie bylo 5 znakow