Thanks, it seems to me it is better than mine, furthermore p is a regular type in formatting strings. I tried this format, and finally i will stay with my original type, because (str, "nPointer:%p",(void*)my_type) gives back a hexadecimal number, mine gives back a decimal number.
Last edited by Aku_Aku; 11/19/1722:53. Reason: final solutions