When using malloc and doing similar memory manipulation can I rely on sizeof( char ) being always 1?
For example I need to allocate memory for N elements of type
sizeof(char) is always 1 no matter what type of memory manipulation you do.
sizeof(char)
However, sizeof(TCHAR) may vary depending upon your compiler options.
sizeof(TCHAR)