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

# \_splitpath(3w)

## NAME

**\_splitpath** (NTDLL.@)

## SYNOPSIS

void \_splitpath\
  (\
   const char\* *inpath*,\
   char\*       *drv*,\
   char\*       *dir*,\
   char\*       *fname*,\
   char\*       *ext*\
  )

## DESCRIPTION

Split a path into its component pieces.

## PARAMS

*inpath* **\[In\]**  Path to split.

*drv* **\[Out\]**  Destination for drive component (e.g. **"A:"**). Must be at least **3** characters.

*dir* **\[Out\]**  Destination for directory component. Should be at least **MAX\_PATH** characters.

*fname* **\[Out\]**  Destination for File name component. Should be at least **MAX\_PATH** characters.

*ext* **\[Out\]**  Destination for file extension component. Should be at least **MAX\_PATH** characters.

## RETURNS

Nothing.

## IMPLEMENTATION

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

Implemented in **"dlls/ntdll/string.c"**.
