Subj : Re: C lang. suggestion for a newbie... To : comp.os.linux.questions,comp.os.linux,comp.programming From : Michael J. Fromberger Date : Thu Aug 12 2004 10:35 am In article <546a730c.0408120237.31d24c95@posting.google.com>, mail2kjs@yahoo.com (kamaljeet singh) wrote: > hi i am interested in system programming only on the open system > architectures like the linux os. but i have only done C prog. on the > TurboC on windows . i want to know that do i have to learn C prog. > differently on the different os platforms and on different compilers > because in linux there is GCC compiler. > in the GCC compiler there is no conio.h,graphics.h,dos.h header files > and we have to write int main() function instead of void main() > function. > i have searched for C lang. books but all are for the windows platform > only. > from where do i get books or materials to learn C prog. in the linux > platform??? > any help would be grateful... Although it is slightly dated, I can still recommend "The Unix Programming Environment" by Brian Kernighan and Rob Pike: http://cm.bell-labs.com/cm/cs/upe/ It is not specific to Linux, but it will give you a good basis in the concepts you need to program Linux and other Unix-like systems. You might also consider Eric S. Raymond's "The Art of Unix Programming": http://shorl.com/gevifrofrogomi Incidentally, the main() function of a C program is supposed to have a return type of int, as per the ISO C standard. Most compilers will accept a non-standard main() that yields void, but that is not a Linux vs. Windows issue. Cheers, -M -- Michael J. Fromberger | Lecturer, Dept. of Computer Science http://www.dartmouth.edu/~sting/ | Dartmouth College, Hanover, NH, USA .