strxfrm.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 58 行

3
58
字号
.TH strxfrm 3.SH Namestrxfrm \- string transformation.SH Syntax.B size_t strxfrm (\fIto, from, maxsize\fP).br.B char *\fIto\fP;.br.B char *\fIfrom\fP;.br.B size_t \fImaxsize\fP; .SH Description.NXR "strxfrm subroutine"The.PN strxfrmfunction transforms the string pointed to by \fIfrom\fR and places the resulting string into the array pointed to by \fIto\fR.The transformation is such that two transformed stringscan be ordered by the.PN strcmpfunction as appropriate to the program's locale category.PN LC_COLLATE ..PPThe length of the resulting string may be much longer than the original.No more than .PN maxsize characters are placed into the resulting string including theterminator.  If the transformed string does not exceed.PN maxsize characters, the number of characters (less the terminator) is returned.Otherwise the number of characters (less the terminator)in the transformed string is returned and the contents of the array are undefined..SS International Environment.IP LC_COLLATE 15Contains the user requirements for language, territory, and codeset forthe character collation format. .PN LC_COLLATEaffects the behavior of regular expressions and the string collation functionsin .PN strxfrm .If .PN LC_COLLATEis not defined in the current environment,.PN LANGprovides the necessary default..IP LANG 15If this environment is set and valid, .PN strxfrmuses the international language database named in the definition to determine the character collation formatting rules. If .PN LC_COLLATE is defined, its definition supercedes the definition of .PN LANG ..SH See Alsostring(3), setlocale(3), strcoll(3), environ(5int)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?