MCPcopy Index your code
hub / github.com/NetHack/NetHack / datamodel

Function datamodel

src/hacklib.c:981–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979};
980
981const char *
982datamodel(int retidx)
983{
984 int i, j, matchcount;
985 static const char *unknown = "Unknown";
986
987 for (i = 1; i < SIZE(dm); ++i) {
988 matchcount = 0;
989 for (j = 0; j < MAX_D; ++j) {
990 if (dm[0].sz[j] == dm[i].sz[j])
991 ++matchcount;
992 }
993 if (matchcount == MAX_D)
994 return (retidx == 0) ? dm[i].datamodel : dm[i].dmplatform;
995 }
996 return unknown;
997}
998
999const char *
1000what_datamodel_is_this(int retidx, int szshort, int szint, int szlong, int szll,

Callers 3

build_optionsFunction · 0.85
compare_critical_bytesFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected