MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / IsValidName

Function IsValidName

src/SB/Game/zSaveLoad.cpp:1374–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1372}
1373
1374bool IsValidName(char* name)
1375{
1376 if (strcmp((char*)name, "") == 0)
1377 {
1378 return 0;
1379 }
1380
1381 for (char* p = name; *p != NULL; p++)
1382 {
1383 if ((*p < 'A' || *p > 'z') && (*p < '0' || *p > '9') && (*p != ' ' && *p != '\''))
1384 {
1385 return 0;
1386 }
1387 }
1388 return 1;
1389}
1390
1391void BuildIt(char* build_txt, S32 i)
1392{

Callers 2

BuildItFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected