websGetDefaultDir GoAhead WebServer API GoAhead EMF

Synopsis

Return the path of the default web page directory.

Prototype

 #include "webs.h"
 
 char_t *websGetDefaultDir(); 

Parameters

None

Description

The websGetDefaultDir procedure returns a local pathname for the default web directory. The default web directory is set by the websSetDir procedure. Although many web page directories can be configured by using URL Handlers, the web page directory configured via websSetDir is designated as the default.

Return Value

Pointer to a static buffer containing a pathname. Do not call bfree on the result.

Example

 
dir = websGetDefaultDir(); 

Stability Classification

Stable.

See Also

websGetDefaultPage, websUrlHandlerDefine, websSetDefaultDir, websSetDefaultPage