![]() |
memset function
hye can anyone give me the example of memset function
|
Re: memset function
Code:
TCHAR szPath[MAX_PATH]; |
Re: memset function
> memset(szPath,'\0',MAX_PATH);
And if TCHAR isn't a char, then you'll need one of Code:
memset(szPath,'\0',MAX_PATH * sizeof TCHAR );Focus on the bit about "all-bits-zero". In other words, don't rely on memset giving you valid floats or pointers, if you try the same approach on attempting to clear more complex data types. |
| All times are GMT +5.5. The time now is 14:35. |