# StringLength

int StringLength (char *string);

## Purpose

Returns the number of bytes in the string up to, but not including, the first ASCII NUL.

### Example

char s[100];
int nbytes;
nbytes = StringLength (s);

## Parameters

Input
Name | Type | Description
string | string | NUL–terminated string whose length is to be calculated.

## Return Value

Name | Type | Description
n | integer | Number of bytes in string up to, but not including, the ASCII NUL.