Sample C programming code. How to get input from the console.
This is a sample C program showing how to define a function as well as accepting input from the command-line. Hopefully this is useful for someone who is writing a console application for Linux or UNIX. #include <stdio.h> #include <string.h> int main(int argc, char **argv) { char *name; name = argv[1]; if … Read more