Forgive me for being stupid but how do I write simple command line programs in C in OS X? I think I can write programs in the text edit program and then compile them with 'make' but I'm sure there must be a simple program or way to use XCode so as to debug and spot errors. Something on the lines of the Salford C compiler in Windows. Any help would be greatly appreciated!!