Empty string: Difference between revisions

Content added Content deleted
No edit summary
(→‎{{header|PL/I}}: add (necessary) declaration)
Line 684: Line 684:


=={{header|PL/I}}==
=={{header|PL/I}}==
<lang PL/I>
<lang PL/I>Dcl s Char(10) Varying;
s = ''; /* assign an empty string to a variable. */
s = ''; /* assign an empty string to a variable. */
if length(s) = 0 then ... /* To test whether a string is empty */
if length(s) = 0 then ... /* To test whether a string is empty */