|
|
1.1 root 1:
2:
3: strxfrm() String Function strxfrm()
4:
5:
6:
7:
8: Transform a string
9:
10: #include <string.h>
11: uunnssiiggnneedd iinntt ssttrrxxffrrmm(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2, _n);
12: cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; uunnssiiggnneedd iinntt _n);
13:
14: strxfrm transforms string2 using information concerning the
15: program's locale, as set by the function setlocale.
16:
17: strxfrm writes up to n bytes of the transformed result into the
18: area pointed to by string1. It returns the length of the trans-
19: formed string, not including the terminating null character. The
20: transformation incorporates locale-specific material into
21: string2.
22:
23: If n is set to zero, strxfrm returns the length of the trans-
24: formed string.
25:
26: If two strings return a given result when compared by strcoll
27: before transformation, they will return the same result when com-
28: pared by strcmp after transformation.
29:
30: ***** See Also *****
31:
32: string functions, string.h
33:
34: ***** Notes *****
35:
36: If strxfrm returns a value equal to or greater than n, the con-
37: tents of the area pointed to by string1 are indeterminate.
38:
39: COHERENT has not yet implemented the ANSI locale functions.
40: Therefore, strxfrm behaves the same as strcpy.
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.