[#BloombergLP-ball-Severity-fromAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Severity.adoc[Severity]::fromAscii
:relfileprefix: ../../../
:mrdocs:

Load into the specified `level` the severity matching the specified `string`&period;

== Synopsis

Declared in `&lt;ball&lowbar;severity&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
fromAscii(
    xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level]* level,
    char const* string,
    int stringLength);
----

== Description

Load into the specified `level` the severity matching the specified case&hyphen;insensitive `string` of the specified `stringLength`&period; Return 0 on success, and a non&hyphen;zero value with no effect on `level` otherwise (i&period;e&period;, `string` does not match any `Level` enumerator)&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *level*
| severity level to set
| *string*
| case&hyphen;insensitive severity name
| *stringLength*
| length of `string`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
