B
Bill Cunningham
Having virtually never used any header other than stdio.h I now see on
pg 7 of "C Unleashed" the use of string.h and stdlib.h. If you were a really
good C programmer, would you use macros much? Or just pointers and
variables? I am new to strcpy and I've never used malloc. I've never seen
this free(). What's happening to this char *p? It's being assigned malloc()
and strlen() is used. Alas C has so many shortcuts in programming I don't
know how to keep up. I guess my question is about the p as a pointer to a
char. What is happening to this pointer as you go down through this code?
Bill
pg 7 of "C Unleashed" the use of string.h and stdlib.h. If you were a really
good C programmer, would you use macros much? Or just pointers and
variables? I am new to strcpy and I've never used malloc. I've never seen
this free(). What's happening to this char *p? It's being assigned malloc()
and strlen() is used. Alas C has so many shortcuts in programming I don't
know how to keep up. I guess my question is about the p as a pointer to a
char. What is happening to this pointer as you go down through this code?
Bill