ptr = data;
+ if (nitems == 0)
+ printf("<no items>");
+
switch(act_format)
{
case 8: size = sizeof(char); break;
ptr = data;
+ if (nitems == 0)
+ printf("<no items>");
+
for (j = 0; j < nitems; j++)
{
switch(act_type)
the terminating 0 */
break;
case XA_ATOM:
- printf("\"%s\"", XGetAtomName(dpy, *(Atom*)ptr));
+ {
+ Atom a = *(Atom*)ptr;
+ printf("\"%s\" (%d)",
+ (a) ? XGetAtomName(dpy, a) : "None",
+ (int)a);
+ break;
+ }
break;
default:
if (float_atom != None && act_type == float_atom)