Giter Site home page Giter Site logo

Comments (4)

rurban avatar rurban commented on July 30, 2024 1

That was a decision by Cisco. I'll ask them

from safeclib.

rurban avatar rurban commented on July 30, 2024

I'll act according to the documentation, and existing C11 AnnexK library implementations.

So the printf family needs to return negative error numbers. Fixed that with 4e7cc24

Wrong: printf without n (non-truncating) return 0 or -1, setting errno.
truncating printf return -1, setting errno. Fixed with #24

from safeclib.

rurban avatar rurban commented on July 30, 2024

The other str*_s functions which do return errno_t definitely return positive errnum's.
The return type errno_t also suggests returning a positive errno as with most other errno's.

E.g. MSVC strcpy_s returns either EINVAL for our ESNULLP or ERANGE for our ESNOSPC.
So I think we are now done with that.

from safeclib.

jeremyhannon avatar jeremyhannon commented on July 30, 2024

👍 Ok so for functions with errno_t return type, return a positive error number. For functions with int return type, return a negative number.

from safeclib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.