RFC: Simple, safe string library for libgfortran

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Jul 25 10:10:00 GMT 2007


Janne Blomqvist wrote:
> The proposed string library defines a string type, containing a pointer 
> to the buffer as well as length information. Also, the typical string 
> functions are provided for manipulating strings, with the idea that the 
> library takes care of buffer size calculations once and for all.

You can maybe save yourself a lot of headaches by using libiberty's 
dyn-string.c which implements the same thing, unfortunately using 
NUL-terminated strings.  I haven't investigated if that restriction's 
easy to overcome.

- Tobi



More information about the Fortran mailing list