I'm not sure exactly if the title made it clear, but I want to save the text typed in the same line while executing a program in C.
For example, if I type: ./myprogram samplestring
I want to save samplestring as a variable in the C program. Not sure if this is possible or not, and sorry if I'm not being clear, I'm a bit confused.
argv[1]?