[#BloombergLP-bdld-Datum-dataTypeToAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::dataTypeToAscii
:relfileprefix: ../../../
:mrdocs:

Return the non&hyphen;modifiable string representation corresponding to the specified `type`, if it exists, and a unique (error) string otherwise&period; The string representation of `type` matches its corresponding enumerator name with the `e&lowbar;` prefix elided&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
dataTypeToAscii(xref:BloombergLP/bdld/Datum/DataType.adoc[DataType] type);
----

== Description

For example&colon; &grave; bsl&colon;&colon;cout &lt;&lt; bdld&colon;&colon;Datum&colon;&colon;dataTypeToAscii(bdld&colon;&colon;Datum&colon;&colon;e&lowbar;NIL)&semi; &grave; will print the following on standard output&colon; &grave; NIL &grave; Note that specifying a `type` that does not match any of the enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified&period;


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