?? htdescpt.h
字號(hào):
/* W3C Sample Code Library libwww File descriptions!File Descriptions!*//*** (c) COPYRIGHT MIT 1995.** Please first read the full copyright statement in the file COPYRIGH.*//*Descriptions appearing in directory listingsare produced by this module. This may be overridden by another modulefor those who which descriptions to come from somewhere else. It'sonly HTTP directory listings that contain a description field (ifenabled by the Directory browsing module.This module is implemented by HTDescpt.c, andit is a part of the W3CSample Code Library.*/#ifndef HTDESCRIPT_H#define HTDESCRIPT_H/*.Description File.This module gets descriptions from the file defined by global variableHTDescriptionFile in the same directory as the directoyto be listed. The default value is .www_descript:*/extern char * HTDescriptionFile;/*In the description file lines starting with a word starting with 'D'are taken to be descriptions (this looks funny now, but this is tomake it easy to extend these description files to contain also otherinformation. An example of the format of the description file is:*//*** DESCRIBE welcome.html Our welcome page** DESCRIBE map*.gif Map as a GIF image** DESCRIBE map*.ps Map as a PostScript image*//*.HTML Titles.If description is not specified for a file that is of typetext/html, this module uses the HTML TITLE as thedescription. This feature can be turned off by setting theHTPeekTitles variable to false.*/extern BOOL HTPeekTitles;/*.Read Description File.The description file for a directory is read in only once byHTReadDescriptions(), and the result returned by it isgiven as an argument when finding out a description for a single file.*/extern HTList * HTReadDescriptions (char * dirname);/*.Get Description For a File.Once description file has been read and the list of descriptions isreturned by HTReadDescriptions(), the functionHTGetDescription() can be used to get a description for agiven file:*/extern char * HTGetDescription (HTList * descriptions, char * dirname, char * filename, HTFormat format);/*Directory name has to be present because this function may then take apeek at the file itself (to get the HTML TITLE, for example).If format is WWW_HTML and description is notfound, this module may be configured to use the HTML TITLE as thedescription. No string returned by this function should be freed!.Freeing Descriptions.Once descriptions have been gotten, the description list returned byHTReadDescriptions() must be freed byHTFreeDescriptions():*/extern void HTFreeDescriptions (HTList * descriptions);/**/#endif /* !HTDESCRIPT_H *//*@(#) $Id: HTDescpt.html,v 2.13 1998/05/14 02:10:22 frystyk Exp $*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -