My Project
Functions
dirlisting.h File Reference

Directory-listing helper functions. More...

#include <stdio.h>

Go to the source code of this file.

Functions

void dirlistingBegin (FILE *stream, const char dirName[])
 Prints the beginning of a directory-listing HTML page to a stream. More...
 
void dirlistingPrintEntry (FILE *stream, const char dirName[], const char entryName[])
 Prints an entry of a directory listing to a stream. More...
 
void dirlistingEnd (FILE *stream)
 Prints the end of a directory-listing HTML page to a stream. More...
 

Detailed Description

Directory-listing helper functions.

This module contains routines for creating a directory-listing HTML page.

Function Documentation

◆ dirlistingBegin()

void dirlistingBegin ( FILE *  stream,
const char  dirName[] 
)

Prints the beginning of a directory-listing HTML page to a stream.

In addition to the HTML header, a page title and a pseudo-entry referring to the parent directory are printed.

Parameters
streamThe output stream.
dirNameName of the directory.

◆ dirlistingEnd()

void dirlistingEnd ( FILE *  stream)

Prints the end of a directory-listing HTML page to a stream.

Parameters
streamThe output stream.

◆ dirlistingPrintEntry()

void dirlistingPrintEntry ( FILE *  stream,
const char  dirName[],
const char  entryName[] 
)

Prints an entry of a directory listing to a stream.

Parameters
streamThe output stream.
dirNameName of the directory containing the entry.
entryNameName of the entry.