This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Simple, safe string library for libgfortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]