[CM] s7_load_c_string

bil at ccrma.Stanford.EDU bil at ccrma.Stanford.EDU
Wed Sep 1 13:09:35 PDT 2021

Yes, s7 could null-terminate the string, but it would need
to make room for the string + the null, copy the string,
etc.  s7_load does this (actually it adds 2 nulls --
I wonder what that's about...).  I was hoping to avoid
the copy and eventual free.

I added an error check to s7_load_c_string -- maybe it
should warn about the missing 0, then go ahead and
copy the string, etc.

More information about the Cmdist mailing list