set_errno missing?

  • Hello,

    I've searched but I couldn't find the function set_errno(), or
    something equivalent, to set the global errno variable used by the CRT.
    Or is there not need to set it directly (currently I want to set it to
    0 to make sure that I don't catch any errors left from other function
    calls)?
    For example, the wcstol sets errno to some error value if an error
    occurs. I want to make sure that if errno is set to an error value,
    that it was this function which caused it, and not some call that
    happened who knows when...

    Does anyone have any ideas?

    Thanks,
    Ivan
  • Am 15.10.2007 um 21:08 schrieb Ivan Galic:

    > currently I want to set it to 0 to make sure that I don't catch any
    > errors left from other function calls

    errno = 0;

    ?

    Markus

    - - - - - - - - - - - - - - - - - - -
    Dipl. Ing. Markus Hitter
    http://www.jump-ing.de/
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today