Go to the first, previous, next, last section, table of contents.


strcoll

Syntax

#include <string.h>

int strcoll(const char *s1, const char *s2);

Description

This function compares s1 and s2, using the collating sequences from the current locale.

Return Value

Zero if the strings are equal, a positive number if s1 comes after s2 in the collating sequense, else a negative number.

Portability

ANSI, POSIX

Example

while (strcoll(var, list[i]) < 0)
  i++;


Go to the first, previous, next, last section, table of contents.