python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Redirect output of command line to a variable in C
Is there a way to redirect output of a command line which returns integer as an output to a variable in C?
for example, if the command is "cmd", then is there a way to redirect its output (a...
qwerty
Votes: 0
Answers: 3
fgets implementation from the std library of K&R 2nd edition
I'm aware that code snippets from textbooks are just for demonstration purposes and shouldn't be held to production standards but K&R 2nd edition on page 164-165 says:
fgets and fputs, here they ...

rootkea
Votes: 0
Answers: 2
Reading from file line by line and matching pattern - C
I have a text file with lines like this:
"string maybe contains more than one word - string as the previous -
number"
I read from this file line by line with fgets, but the sscanf just cut...

Zoltán Orosz
Votes: 0
Answers: 1