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

Function size_str

src/insight.c:3202–3231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3200}
3201
3202staticfn char *
3203size_str(int msize)
3204{
3205 static char outbuf[40];
3206
3207 switch (msize) {
3208 case MZ_TINY:
3209 Strcpy(outbuf, "tiny");
3210 break;
3211 case MZ_SMALL:
3212 Strcpy(outbuf, "small");
3213 break;
3214 case MZ_MEDIUM:
3215 Strcpy(outbuf, "medium");
3216 break;
3217 case MZ_LARGE:
3218 Strcpy(outbuf, "large");
3219 break;
3220 case MZ_HUGE:
3221 Strcpy(outbuf, "huge");
3222 break;
3223 case MZ_GIGANTIC:
3224 Strcpy(outbuf, "gigantic");
3225 break;
3226 default:
3227 Sprintf(outbuf, "unknown size (%d)", msize);
3228 break;
3229 }
3230 return outbuf;
3231}
3232
3233/* used for self-probing */
3234char *

Callers 1

mstatuslineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected