Status: Assigned
Owner: jsuijs
Labels: Type-Defect Priority-Medium
New issue 128 by jsuijs: print_string early termination
http://code.google.com/p/jallib/issues/detail?id=128
- string termination is user-definable.
- if the user does not define it, zero is defined as end-of string, if
encountered before end of the array (determined by count()).
2010/5/3 William <[email protected]>:
What about a slightly different
approach, that would allow anyone who wants to test/debug the new
feature, yet not break older code:
1) delete these lines completely (do not define a default terminator
at all):
if (defined(print_string_terminator) == false) then
const byte print_string_terminator = 0
end if
2) modify the other lines like so:
if (defined(print_string_terminator) == true) then
if (str[i] == print_string_terminator) then exit loop
end if
end if
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.