is there any function that execute a command on shell and return the answer
for example when i pass "ls" to this function it return list of files in current directory
thanks
That never seems to work for me. I wanted a command line calculator ages ago; but I never got the right answer. Then again, that may be becuase I was casting argv[i] instead of using atoi()...