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

# StrSpnA(3w)

## NAME

**StrSpnA** (SHLWAPI.@)

## SYNOPSIS

int StrSpnA\
  (\
   LPCSTR *lpszStr*,\
   LPCSTR *lpszMatch*\
  )

## DESCRIPTION

Find the length of the start of a string that contains only certain characters.

## PARAMS

*lpszStr* **\[In\]**  String to search.

*lpszMatch* **\[In\]**  Characters that can be in the substring.

## RETURNS

The length of the part of *lpszStr* containing only characters from *lpszMatch*, or **0** if any parameter is invalid.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
