node-ctypes - v2.17.1
    Preparing search index...

    Function set_errno

    • Set the ctypes-private copy of errno; returns the previous value. As in CPython, value must be an integer in the C int range (a BigInt or boolean is accepted): out of range is a RangeError (Python int too large to convert to C long on Windows; signed integer is greater than maximum / signed integer is less than minimum elsewhere), a non-integer a TypeError ('float' object cannot be interpreted as an integer), and any number of arguments other than one a TypeError (function takes exactly 1 argument (N given)).

      Python equivalent: ctypes.set_errno()

      Parameters

      • value: number | bigint | boolean

      Returns number