Firstly please forgive my limited c knowledge but how can I cast a char pointer into a long on both 32bit and 64bit platforms? This code gives me a compiler warning C4311 with Visual Studio 2015
char *c;
long l;
l = (long)(c);
Thanks
Edit
Error code is 'type cast': pointer truncation from 'char *' to 'long' Can downvotes let me know why they have downvoted?
See Question&Answers more detail:os