---
name: "str_start"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/str_start/3diet"
---

# str\_start(3diet)

compare prefixes of strings

## NAME

str\_start - compare prefixes of strings

## SYNTAX

**#include \<str.h\>**

size\_t **str\_start**(const char\* *a*,const char\* *b*);

## DESCRIPTION

str\_start returns 1 if *b* is a prefix of *a*, 0 otherwise.

## SEE ALSO

[strncmp(3)](/strncmp/3.md)
