Hi all,
Since installing OSX, I've been thinking about my old unix days in college. Knowing that OSX programmes are written in objective C, I decided to learn C and then work my way up to objective C once some good books were out. However, I've come upon my first stumbling block. My book, "C for Dummies vol.1", teaches the gets() function as a way to get keyboard input. So, I coded the exercise programme and compiled it with no problem. However, when I run it from the command line I get: "This programme uses the gets() function which is dangerous" (or something like that.) Why is gets() dangerous? Should I substitute scanf(), or is there some other function I should be using instead of gets()? Your help will be much appreciated by a "programmer in training". Cheers,
Derrick
------------------
10:00 conocí a Apple. 10:30 trabajé con Apple. Apple Computer®