MCPcopy Create free account
hub / github.com/NetHack/NetHack / complex_dump

Function complex_dump

src/sfbase.c:624–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622 return buf;
623}
624char *
625complex_dump(uchar *a)
626{
627 int i;
628 uchar *uc = a;
629 static char buf[50];
630 unsigned x[10];
631
632 for (i = 0; i < SIZE(x); ++i) {
633 x[i] = *uc++;
634 }
635 Snprintf(buf, sizeof buf, "%03x %03x %03x %03x %03x %03x %03x %03x %03x %03x",
636 x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9]);
637 buf[40] = '\0';
638 return buf;
639}
640/*
641 *----------------------------------------------------------------------------
642 * initialize the function pointers. These are called from initoptions_init().

Callers 2

sfo_version_infoFunction · 0.85
sfi_version_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected