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

# StrCSpnA(3w)

## NAME

**StrCSpnA** (SHLWAPI.@)

## SYNOPSIS

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

## DESCRIPTION

Find the length of the start of a string that does not contain certain characters.

## PARAMS

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

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

## RETURNS

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

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
