Thread: exit program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    17

    exit program

    what is another alternative to

    Code:
    system("pause");
    using a standard c library function

    I need to get this to work =(

    Code:
    printf ("Press enter to close window...");
    	scanf (" %c", &close);
    	if(close == '\n')
    		EXIT_SUCCESS;
    	EXIT_FAILURE;
    	exit(EXIT_SUCCESS);
    Last edited by Teardrop3903; 03-10-2011 at 02:43 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a Battleship Program
    By HBlakeH in forum C Programming
    Replies: 1
    Last Post: 12-05-2010, 11:13 PM
  2. HELP with Program!
    By afnitti in forum C Programming
    Replies: 9
    Last Post: 04-15-2009, 08:06 PM
  3. exit a program at any point.
    By slightofhand in forum C Programming
    Replies: 5
    Last Post: 03-02-2008, 09:08 AM
  4. Program Terminating With Error On Exit
    By chriscolden in forum C Programming
    Replies: 19
    Last Post: 01-14-2006, 04:40 AM
  5. Program uses a lot of memory and doesnt exit properly
    By TJJ in forum Windows Programming
    Replies: 13
    Last Post: 04-28-2004, 03:13 AM