ishaanarora 0 Newbie Poster

There is no place for mediocrity in the world.

ProbleM:
i am programming in language c on linux platform .After including one particular function my scanf start returning value -1 and error no is 4(EINTR) . And after first time taking input from user it runs correctly and then it starts taking a default value which u have entered on first in put and runs a infinite loop.

Note:
I cant give u the code bcoz i m a trainee with a company in India and can't disclose company code.

Please tell me where is the problem and possible solutions?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.