Re: sorting std::vector<string> ignoring case



I'm sorry for my wrong expression, with 'portable' I wanted to say ANSI compatible. Also I didn't say that the original names has
been removed. They exist yet. Still is valid to use them in VC8 but, like you appointed, they are deprecated.

Regards

..
--
Cholo Lennon
Bs.As.
ARG

"Doug Harrison [MVP]" <dsh@xxxxxxxx> escribió en el mensaje news:9rs1431nbov0cdeilcavhl671ci1njg6os@xxxxxxxxxx
On Tue, 8 May 2007 17:11:35 -0300, "Cholo Lennon" <chololennon@xxxxxxxxxxx>
wrote:

Warning: 'stricmp' is not portable and should be used like '_stricmp' through 'string.h' header (name without underscore is for
backward compatibility)

Regards

Neither function is "portable". The underscore-prefaced name for this
function (and many others) was introduced to move them out of the user
namespace and into the reserved namespace, but I'm not aware that any of
the original names has ever been removed. (VC8 has marked them deprecated,
though.) If anything, the underscored ones are *less* portable, at least
when it comes to standard Unix system functions such as open, close, etc.

P.S. The name "stricmp" doesn't even step into the user namespace, because
names beginning with str[a-z] (and mem[a-z] for that matter) are reserved
in the global namespace.

--
Doug Harrison
Visual C++ MVP


.



Relevant Pages

  • Re: [PATCH -mm 5/7] add user namespace
    ... the root_user is added to the new user namespace ... It is important for uid 0 in other ... because IMHO the capability system is the ...
    (Linux-Kernel)
  • Re: [PATCH -mm 5/7] add user namespace
    ... I wonder about another namespace coupling I found thinking ... allocate a new user_structin each new user namespace. ... struct user_struct *ret; ...
    (Linux-Kernel)
  • Re: [PATCH -mm 0/7] execns syscall and user namespace
    ... The user namespace will allow a process to unshare its user_struct table, ... The purpose of execns is to make sure that a process unsharing a namespace ... For some things clone is still more general then unshare, ...
    (Linux-Kernel)
  • Re: [PATCH -mm 0/7] execns syscall and user namespace
    ... The user namespace will allow a process to unshare its user_struct table, ... The purpose of execns is to make sure that a process unsharing a namespace ... For the ipc namespace, example are shm ids vs. vma, sem ids vs. ...
    (Linux-Kernel)
  • Re: [PATCH -mm 0/7] execns syscall and user namespace
    ... The following patchset adds the user namespace and a new syscall execns. ... The user namespace will allow a process to unshare its user_struct table, ...
    (Linux-Kernel)

Loading