This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: RFC: Simple, safe string library for libgfortran
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Wed, 25 Jul 2007 12:10:00 +0200
- Subject: Re: RFC: Simple, safe string library for libgfortran
- References: <46A70BF2.2000908@gmail.com>
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