MCPcopy Create free account
hub / github.com/numpy/numpy / strtol_const

Function strtol_const

numpy/core/src/multiarray/datetime.c:706–709  ·  view source on GitHub ↗

strtol does not know whether to put a const qualifier on endptr, wrap * it so we can put this cast in one place. */

Source from the content-addressed store, hash-verified

704 * it so we can put this cast in one place.
705 */
706NPY_NO_EXPORT long int
707strtol_const(char const *str, char const **endptr, int base) {
708 return strtol(str, (char**)endptr, base);
709}
710
711/*
712 * Converts a substring given by 'str' and 'len' into

Calls

no outgoing calls

Tested by

no test coverage detected