Skip to main content
gamedev.net
🔒 Locked

Checking Datatype

Started by Keba 0 replies 500+ views
Original Post
Keba
Keba
ok, suppose i got a adress: 0xCD2343DC...or something like that. then i''m quite sure its a variabel of datatype int(yeah right) anyway,now i want to be sure this is a adress to valid int variabel before i use it, is there anyway to check where this adress is going,and if its valid data at that end?
Jiia
Jiia
Not unless you''re a monk. Your best bet is probably to test values to see if they are way out of range compared to what you''re looking for. Try 32 bits, then 16, then 8, etc. If that fails, you just blind-stab at it until you get it to work. But it really depends on what you''re trying to do.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.