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

Function align_str

src/insight.c:3178–3200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3176}
3177
3178RESTORE_WARNING_FORMAT_NONLITERAL
3179
3180/*
3181 * align_str(), piousness(), mstatusline() and ustatusline() once resided
3182 * in pline.c, then got moved to priest.c just to be out of there. They
3183 * fit better here.
3184 */
3185
3186const char *
3187align_str(aligntyp alignment)
3188{
3189 switch ((int) alignment) {
3190 case A_CHAOTIC:
3191 return "chaotic";
3192 case A_NEUTRAL:
3193 return "neutral";
3194 case A_LAWFUL:
3195 return "lawful";
3196 case A_NONE:
3197 return "unaligned";
3198 }
3199 return "unknown";
3200}
3201
3202staticfn char *
3203size_str(int msize)

Callers 13

is_pureFunction · 0.85
welcomeFunction · 0.85
convert_argFunction · 0.85
wizterrainwishFunction · 0.85
digactualholeFunction · 0.85
eval_offeringFunction · 0.85
do_earthquakeFunction · 0.85
dfeature_atFunction · 0.85
lookatFunction · 0.85
background_enlightenmentFunction · 0.85
mstatuslineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected