vfscanf in newlib
Mon Apr 23 11:27:00 GMT 2001
Christopher Faylor wrote:
> I am not sure why the _r functions were created with an underscore. I
> couldn't find anything in the Single Unix Specification which talked
> about a _r function for scanf. It did seem inconsistent to export
> symbols with two leading underscores, though.
> I just checked and see that there are a few functions defined that way
> now but I'm not sure what the rationale for doing things this way is.
> Jeff, could you explain why the _r functions have a leading underscore?
> Is this because they are newlib-only functions, i.e., they don't seem to
> adhere to a standard?
That is correct. These functions are using the newlib reentrancy structure
which is not standard. These functions should not be confused with actual
standard _r functions like POSIX rand_r and strtok_r.
More information about the Newlib