Talk:Strcmp

i have program but want it to write in c only can i get help the program is

write a program to print only ovels ie(a,e,i,o,u) of a string and take the string from the keyboard
 * Talk pages are for discussing the article, not for asking for help on a subject. I recommend you look around for a programming forum to ask this question on.


 * I can also tell you that  won't do what you want. I'm not an expert on the subject, so I don't know if there are any more efficient methods (there probably are), but try iterating over the string and using the   operator to compare the character at the current position to the vowel characters. Another way would be to use a regular expression library to either match the vowels, or to cull out non-vowel characters, but this may add licensing issues, and could well be less efficient than other methods. -- Link  (t&bull;c&bull;m) 07:44, 10 July 2007 (UTC)

(Why would you mention POSIX? There are more standards that include strcmp, for example SVID 4, SUSv2, microsoft standards, others.)
Because strcmp is a function in the UNIX standard library, which was later adopted by the C standard library. When Brian Kernighan wrote "The C Programming Language", strcmp was part of "The Unix Programming Environment".

It is still a function in the UNIX standard library, even though it has been adopted by the C standard library.

It is a function in the UNIX standard library, independently from whatever the C standard library is.

It is a function in the UNIX standard library even when the UNIX standard library is written in assembler.

The function in the UNIX standard library is not derived from the C standard library.

It is a function in the UNIX standard library before, after, and in parallel with being a function in the C standard library.

Since standardisation of the C Standard library, the function in the C standard library is now independent of the UNIX standard library.

Why POSIX? Because POSIX was a standard which was intended to be a description of standard UNIX. UNIX was a brand name, and I'm not sure it would be meaningful to say "strcmp is a function in an operating system based on UNIX"

Also, because it helps people to understand the old descriptions of C like "a small language with around 30 keywords" if they understand that those descriptions at that time assumed a standard library provided by the OS.

However, if you have a better way of writing that or explaining that, if you can think of something better to reference rather than POSIX, go ahead.150.101.166.15 (talk) 04:05, 4 September 2008 (UTC)

why only C?
PHP, MySQL, etc. also have strcmp. Why not mention those too? --71.141.136.10 (talk) 19:45, 2 July 2010 (UTC)