Code: fgets(strng, len, stdin); What did you expected it to do? "stdin" is the input buffer.
fgets(strng, len, stdin);
Devoted my life to programming...