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

Function iascii_int16

src/IO/rply.c:1408–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406}
1407
1408static int iascii_int16(p_ply ply, double *value) {
1409 char *end;
1410 if (!ply_read_word(ply)) return 0;
1411 *value = strtol(BWORD(ply), &end, 10);
1412 if (*end || *value > PLY_INT16_MAX || *value < PLY_INT16_MIN) return 0;
1413 return 1;
1414}
1415
1416static int iascii_uint16(p_ply ply, double *value) {
1417 char *end;

Callers

nothing calls this directly

Calls 1

ply_read_wordFunction · 0.85

Tested by

no test coverage detected