< C++ Programming < Code < Standard C Library < Functions

strcoll

Syntax
#include <cstring>
int strcoll( const char *str1, const char *str2 );

The strcoll() function compares str1 and str2, much like strcmp(). However, strcoll() performs the comparison using the locale specified by the (Standard C Date & Time) setlocale() function.

Related topics
strcmp - strxfrm
(Standard C Date & Time) setlocale
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.