////////////////////////////////////////////////////////////////////// // // increment.c - program that accepts input from STDIN, and displays // the result to STDOUT. // // Written By: Matthew Haas // Compile: run 'Make' from the project's base directory // Execute: change into project 'bin/' or add project bin/ to // your PATH // // Sample run: // // lab46:~/src/pipemath-fall2014/bin$ ./three | ./increment // 4 // lab46:~/src/pipemath-fall2014/bin$ // #include #include int main(int argc, char **argv) { int input; fscanf (stdin, "%d", &input); fprintf(stdout, "%d\n", (input+1)); return(0); }