Whenever I am trying to build and run this program, the log just keeps saying "Running..." and does not print out anything
The program
The log after Build and Run
Could someone also try to Build and Run the code? If this is a bug/error, how to correct it? Should I reinstall Xcode?
P.S. For project, I used Command Line Tool, under Application
The program
Code:
#include <stdio.h>
/* count digits, white space, others */
main()
{
int c, i, nwhite, nother;
int ndigit[10];
nwhite = nother = 0;
for (i = 0; i < 10; ++i)
ndigit[i] = 0;
while ((c = getchar()) != EOF)
if (c >= '0' && c <= '9')
++ndigit[c-'0'];
else if (c == ' ' || c == '\n' || c == '\t')
++nwhite;
else
++nother;
printf("digits =");
for (i = 0; i < 10; ++i)
printf(" %d", ndigit[i]);
printf(", white space = %d, other = %d\n",
nwhite, nother);
}
The log after Build and Run
Code:
[Session started at 2010-02-07 17:49:54 +0100.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
tty /dev/ttys001
Loading program into debugger
Program loaded.
run
[Switching to process 78644]
Running


Could someone also try to Build and Run the code? If this is a bug/error, how to correct it? Should I reinstall Xcode?
P.S. For project, I used Command Line Tool, under Application