---
name: "_makepath"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/_makepath"
---

# \_makepath(3w)

## NAME

**\_makepath** (MSVCRT.@)

## SYNOPSIS

VOID CDECL  \_makepath\
  (\
   char\*       *path*,\
   const char\* *drive*,\
   const char\* *directory*,\
   const char\* *filename*,\
   const char\* *extension*\
  )

## DESCRIPTION

Create a pathname.

## PARAMS

*path* **\[Out\]**  Destination for created pathname.

*drive* **\[In\]**  Drive letter (e.g. **"A:"**).

*directory* **\[In\]**  Directory.

*filename* **\[In\]**  Name of the file, excluding *extension*.

*extension* **\[In\]**  File *extension* (e.g. **".TXT"**).

## RETURNS

Nothing. If *path* is not large enough to hold the resulting pathname, random process memory will be overwritten.

## IMPLEMENTATION

Declared in **"tchar.h"**.

Implemented in **"dlls/msvcrt/dir.c"**.

Debug channel **"msvcrt"**.
