PDA

View Full Version : stdlib.g/system() <- basic questions.



sean
06-10-2002, 07:23 PM
With most header files you can see a general purpose for them just by looking at some of their code. What the heck is the deal with stdlib.h? And also - I'm looking for the header file that contains system(). Which one is it? And do you need to put the command inside ""s?

Xterria
06-10-2002, 07:27 PM
stdlib.h

System("cls"); //capital S!!!

sean
06-10-2002, 09:06 PM
So the sole purpose for that post was to correct the typoes in my subject line?

adrianxw
06-10-2002, 11:56 PM
>>> So the sole purpose for that post was to correct the typoes in my subject line?

You asked which header System() was in...

>>> stdlib.h

... he told you, you ask are quotes necessary...

>>> System("cls"); //capital S!!!

... he told you, he also pointed out a possible error of yours.

Lighten up. What he didn't tell you is that system() is a really bad idea, and you can read why in the FAQ here...

http://www.cprogramming.com/boardfaq.html#execs

hostensteffa
06-11-2002, 01:01 AM
actually at least on dev-cpp the system does not have to be a capital s. Actually i use it quite frequently with just system()

Zeeshan
06-11-2002, 07:31 AM
I think that the standard setters just placed every MISCALLANEOUS FUNCTION in stdlib.h

No single general purpose...