MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / ply_check_word

Function ply_check_word

src/IO/rply.c:921–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919}
920
921static int ply_check_word(p_ply ply) {
922 size_t size = strlen(BWORD(ply));
923 if (size >= WORDSIZE) {
924 ply_ferror(ply, "Word too long");
925 return 0;
926 } else if (size == 0) {
927 ply_ferror(ply, "Unexpected end of file");
928 return 0;
929 }
930 return 1;
931}
932
933static int ply_read_word(p_ply ply) {
934 size_t t = 0;

Callers 1

ply_read_wordFunction · 0.85

Calls 1

ply_ferrorFunction · 0.85

Tested by

no test coverage detected