This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: add builtin stpncpy, strcasecmp and strncasecmp
> > This patch adds three more builtins: stpncpy, strcasecmp and
> > strncasecmp.
>
> stpncpy is not in the reserved "str" name space. Isn't this a problem
> if user code uses this identifier?
It's no worse than if you try using any of the other dozens of names
unreserved in ISO C like "alloca", "bzero", "gettext" or "fork" as an
identifier.
These builtins are defined specifically as extensions and go away with
--std=c89. You can also disable them individually with
e.g. --no-builtin-stpncpy if they get in the way.
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu