function str = cstring(x) % %CSTRING Print to a string like c % CSTRING(x) takes an array x, of type char, and prints it to % a string the way C would. % the first null, or non-ascii character is the terminator i=1; while (x(i)>0 & x(i)<128 & i