client/New(){
var/string="ABC";
world<<"string is [string] and length(string) is [length(string)]";
string+=ascii2text(0);
world<<"string is [string] and length(string) is [length(string)]";
string+=null;
world<<"string is [string] and length(string) is [length(string)]";
}
Problem description:
I'm just trying to throw a null character at the end of a string. The above code will output the following when run:
string is ABC and length(string) is 3 string is ABC and length(string) is 3 string is ABC and length(string) is 3
Is this just not possible in BYOND or am I doing something wrong?
"In an embedded text expression, null behaves like "". "