Copyright Digital Equipment Corp. All rights reserved.
/* This program verifies that two transformed strings when */
/* passed through strxfrm and then compared, provide the same */
/* result as if passed through strcoll without any */
/* transformation.
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#define BUFF_SIZE 256
main()
{
char string1[BUFF_SIZE];
char string2[BUFF_SIZE];
int errno;
int coll_result;
int strcmp_result;
size_t strxfrm_result1;
size_t strxfrm_result2;
/* setlocale to French locale */
if (setlocale(LC_ALL, "fr_FR.ISO8859-1") == NULL) {
perror("setlocale");