Use %p specifier for pointers in printf-like functions.
Fix: Wrong level of indirection in scanf-like function calls.

scanf-like functions expect a string buffer for %s specifier, not a pointer on a string buffer (/analyze warning C6067).
Fix reading a 32-bit integer instead of a 64-bit integer.
Cosmetics: Rename some variables to make clear they are member variables.
Ensure that the release order of the DS interfaces is consistent.
Fix line endings.
Recommend turning "autocrlf" off.

"autocrlf" is mostly useful for cross-platform projects and it tends to hide the real line-endings in the repo.
Files modified by "autocrlf".