---
name: "_searchenv"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/_searchenv"
---

# \_searchenv(3w)

## NAME

**\_searchenv** (MSVCRT.@)

## SYNOPSIS

void CDECL  \_searchenv\
  (\
   const char\* *file*,\
   const char\* *env*,\
   char\*       *buf*\
  )

## DESCRIPTION

Search for a *file* in a list of paths from an environment variable.

## PARAMS

*file* **\[In\]**  Name of the *file* to search for.

*env* **\[In\]**  Name of the environment variable containing a list of paths.

*buf* **\[Out\]**  Destination for the found *file* path.

## RETURNS

Nothing. If the *file* is not found, *buf* will contain an empty string and errno is set.

## IMPLEMENTATION

Defined in **"msvcrt.h"**.

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

Debug channel **"msvcrt"**.
