[OSy] Printf %p
Lukáš Lipavský
lukas.lipavsky at matfyz.cz
Sat Oct 30 17:43:39 CEST 2004
Mam dotaz, nikde se mi nedari najit, jak presne se ma chovat printk("%p",
"ahoj")
v manualu k glibc jsem nasel:
The `%p' conversion prints a pointer value. The corresponding argument
must be of type void *. In practice, you can use any type of pointer.
In the GNU system, non-null pointers are printed as unsigned integers, as
if a `%#x' conversion were used. Null pointers print as `(nil)'. (Pointers
might print differently in other systems.)
Ale nikde se mi nedari najit, jak to je oficialne definovane (zejmena ze
kazdy system muze jinak).
Otazka tedy je... jaky ma byt format? Nebo je to jedno? :)
Lukas Lipavsky
More information about the NSWI004
mailing list