[PATCH]: add builtin stpncpy, strcasecmp and strncasecmp
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Wed Mar 30 02:24:00 GMT 2005
> > 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
More information about the Gcc-patches
mailing list