C API Reference -- Ns_NormalizePath

### Ns_NormalizePath

#### Overview

Normalize a path name

#### Syntax

        char *Ns_NormalizePath(
        Ns_DString *dest,
        char *path
        );

#### Description

This function removes any extraneous slashes from the path and resolves "." and ".." references. The result is appended to the given Ns_DString. For example

        Ns_NormalizePath(&ds,
    "/dog/cat/../../rat/../../dog//mouse/..");

appends "/dog" to the Ns_DString.

Top of Page
Copyright © 1998-99 America Online, Inc.