?? 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 + -