ANSI C with xcode3

Joined
Jun 23, 2008
Messages
1
Reaction score
0
Points
1
Location
Altenmarkt/Zauchensee (Austria)
Your Mac's Specs
MacBook Pro ++ 2.2 GHZ C2D ++ 2GB 667 DDR2 SDRAM ++ GeForce 8600 GT 128MB ++ 160GB
hi,

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 ;)

sincere regards,
wimmi3
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top