How is possible to compare two pointer?
In c is possible to have:
int *P1;
int *P2;
if (P1<P2)
//some stuff
Thanks
Sesilla
How is possible to compare two pointer?
In c is possible to have:
int *P1;
int *P2;
if (P1<P2)
//some stuff
Thanks
Sesilla
You can cast it to a Cardinal, depending on your compiler version.
From brazil (:
Pascal pownz!
You can adjust pointers by casting them to PtrInt on FreePascal or NativeInt on Delphi.
However, I would advice that you change your code so that you don't need this comparison. For instance, try comparing actual indices to an array instead. The way you want to compare the pointers is very troublesome; it could be both unpredictable and unreliable.
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Thanks to all!
Sesilla
Bookmarks