Thanks.
Short followup question - something I don't really understand about char* in general.
if I did say
Code:
void myFunction(int* pnInput)
{
*pnInput = 500;
return
}
Then the caller would actually notice the change in pnInput.
But in
Code:
void myFunction(char* szInput)
{
*szInput = 50;
return
}
I think it crashes (can't try at the mo).
(I'm aware that the proper way to do it is to have the function header use a char** pszInput, but I just want to understand what's going on anyway)
Are char*s privileged in some way?
These are pretty basic questions, so if you don't want to answer, I'd be absolutely glad to just be linked to an article or something, so I can read up myself and play around.
Thanks