Hi,
I'm finishing reading The C programming language K&R. I've been programming embedded systems using C for more than a year now. Anyway, I still have some doubts about some stuff. Here goes a couple of questions:
1 - What is the effect of declaring a function to be static ?
2 - What's the practical difference between these prototypes: void func(const char*) and void func(char *) ?
I have several functions taking char* as argument, but I noticed that in the standard library most of the functions taking char pointers are like func(const char*).
Thanks in advance.
I'm finishing reading The C programming language K&R. I've been programming embedded systems using C for more than a year now. Anyway, I still have some doubts about some stuff. Here goes a couple of questions:
1 - What is the effect of declaring a function to be static ?
2 - What's the practical difference between these prototypes: void func(const char*) and void func(char *) ?
I have several functions taking char* as argument, but I noticed that in the standard library most of the functions taking char pointers are like func(const char*).
Thanks in advance.