Thread: stdlib.g/system() <- basic questions.

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    stdlib.g/system() <- basic questions.

    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?

  2. #2
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    stdlib.h

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

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    So the sole purpose for that post was to correct the typoes in my subject line?

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> 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
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    178
    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()
    Oi Oi Oi!!!!

  6. #6
    Registered User Zeeshan's Avatar
    Join Date
    Oct 2001
    Location
    London, United Kingdom
    Posts
    226
    I think that the standard setters just placed every MISCALLANEOUS FUNCTION in stdlib.h

    No single general purpose...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic Questions
    By Panda_ in forum C Programming
    Replies: 15
    Last Post: 09-23-2009, 04:24 PM
  2. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  3. Some Basic questions
    By BlaX in forum C Programming
    Replies: 7
    Last Post: 06-30-2009, 09:51 AM
  4. Please help, basic unsigned conversion questions
    By ninjacookies in forum C Programming
    Replies: 3
    Last Post: 04-20-2005, 10:50 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM