NCL Home >
Documentation >
Functions >
String manipulation
str_get_nl
Returns the newline (\n) character as a string.
Available in version 5.1.1 and later.
Prototype
function str_get_nl ( ) return_val [1] : string
Description
This function returns a one-character string containing a newline (\n).
NCL cannot generate a newline string using normal string assignment. This function gives a quick/direct way to get a newline.
See Also
Examples
Example
nl = str_get_nl() print("<" + nl + ">")Output:
(0) < >