[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Help for programming in C
Sukrit K Mehra forced the electrons to say:
> I am learning to program in C and I have problems learning things on linux as
> most books have dos in mind. How do I avoid that?
Hmm... ever tried Kernighan & Ritchie, The C Programming Language,
_After_ mastering that, you can try Advanced Programming in the Unix
Environment, W. Richard Stevens.
> #include "curses.h"
int main (void) is the correct way.
> char buff;
> addstr("Enter your String :");
Not safe. Try
getnstr (buff, sizeof buff);
> Why doesn't this program run. Has the cruses been changed... with effect from
You didn't mention the error you got. If it is a linker error, you have
to add -lcurses to the compilation command line.
> What books should I read...One of my friends was saying that getch() function
> act different from dos version.. Is that true... Is there a programming how to
> that points out all these differences etc somewhere on the net.
I don't know how the dos getch() function works, so I cannot comment
Stevens above is, in my opinion, the most authoritative book that you
can find anywhere on Unix programming.
> Ps... maybe somebody could point me to a nice mailing list on C and related
If you are talking about ANSI C, try the newsgroup comp.lang.c. Some
great C experts post there. For Linux programming, you are at the
right place - also, you can try comp.unix.programmer for generic Unix
programming issues. Both newsgroups are accessible from www.my-deja.com.