f python?
Roy Smith
roy at panix.com
Mon Apr 9 08:45:03 EDT 2012
In article <4f82d3e2$1$fuzhry+tra$mr2ice at news.patriot.net>,
Shmuel (Seymour J.) Metz <spamtrap at library.lspace.org.invalid> wrote:
> >Null terminated strings have simplified all kids of text
> >manipulation, lexical scanning, and data storage/communication
> >code resulting in immeasurable savings over the years.
>
> Yeah, especially code that needs to deal with lengths and nulls. It's
> great for buffer overruns too.
I once worked on a C++ project that used a string class which kept a
length count, but also allocated one extra byte and stuck a null at the
end of every string.
More information about the Python-list
mailing list