📄 pname.txt
字号:
SUMMARY pname() form a "pretty" version of a user file name
*/
#include <tools.h>
char *pname (char *pszName)
DESCRIPTION
OS/2 v1.2 and later will allow filenames to retain the case
when created while still being case insensitive for all operations.
This allows the user to create more visually appealing file names.
All runtime routines should, therefore, preserve the case that was
input. Since the user may not have input in the case that the entries
were created, we provide a service whereby a pathname is adjusted
to be more visually appealing. The rules are:
if (real mode)
lowercase the sucker
else
if (version is <= 1.1)
lowercase the sucker
else
if (filesystem is FAT)
lowercase the sucker
else
for each component starting at the root, use DosFindFirst
to retrieve the original case of the name.
RETURN VALUE
IMPLEMENTATION
SEE ALSO
NOTE
EXAMPLE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -