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

Function iascii_int8

src/IO/rply.c:1392–1398  ·  view source on GitHub ↗

---------------------------------------------------------------------- * Input handlers * ---------------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

1390 * Input handlers
1391 * ---------------------------------------------------------------------- */
1392static int iascii_int8(p_ply ply, double *value) {
1393 char *end;
1394 if (!ply_read_word(ply)) return 0;
1395 *value = strtol(BWORD(ply), &end, 10);
1396 if (*end || *value > PLY_INT8_MAX || *value < PLY_INT8_MIN) return 0;
1397 return 1;
1398}
1399
1400static int iascii_uint8(p_ply ply, double *value) {
1401 char *end;

Callers

nothing calls this directly

Calls 1

ply_read_wordFunction · 0.85

Tested by

no test coverage detected