Thread: ANSI C with xcode3
06-23-2008, 09:39 AM #1
ANSI C with xcode3
- Member Since
- Jun 23, 2008
- Altenmarkt/Zauchensee (Austria)
- MacBook Pro ++ 2.2 GHZ C2D ++ 2GB 667 DDR2 SDRAM ++ GeForce 8600 GT 128MB ++ 160GB
i'm a student from austria learning ansi c an java.. because i'm the only one with a mac in class, i get no support from the teachers for programming with xcode. and because of that, i have some questions to you
i'm making a programm in ansi c, but there is a problem with the libraries - they are not there. (windows.h, conio.h..)
yesterday i searched a librarie for getch().. but i couldn't found one - today i have another problem with atoi()..
so.. my question to you -> are there any libraries for these functions? or is it better, when i install parallels or something like that to programm ansi c?
ps: my english is not the best, sorry for that
06-23-2008, 12:39 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
A basic Google search shows that those first two .h files are NOT ansi C, but Microsoft proprietary add-ons.
A possible replacement for conio.h might be ncurses.
Do a man for ncurses, getch, and atoi in the Terminal.
I'd say since you are clearly doing Microsoft specific coding that you would be better off installing a VM with the appropriate Microsoft OS and programming tools.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)