- System() :
I've seen many programmers who doesn't recommend using system() for the following reasons :
a. They say that someone may "map" your program to do something else and you wouldn't know about it.
What does that mean? does "he" like replace the program between the quotes (in system()) with another malicious program using the same name for example?
b. They say its slow in bigger programs. I don't understand this part , why would it go slow?? and are there any other cons for system()?
- strtok() , when you use it on a string , then use it again with NULL as its first argument it would continue on the same string right?
What i wanna know is , does it save the string as "static" on the first call and check later if i wanna use the same string or not? (might be stupid question but im curious).
and how\where can i see the code of a standard function? (im using VC++)
- I just noticed that all kinds of pointers (double , int , long , char) are 4 bytes big. Is this a constant size on all computers? or is the size at least the same for all pointers on all computers?
*EDIT* and what does my computer fill in those 4 bytes, the object's adress in memory?
thanks for your time