This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

g77 character strings are not terminated?


In every other f77 system I've used if one creates
a string like 'a b c', the result is null terminated.
With g77 this seems not to be the case, so it's impossible
to find the end of a string, unless one explicitly
gives the string as 'a b c\0'. However I've got
a zillion lines of code that expect a null.
Is this really what is intended in g77? Is there
a compiler flag to set to get null terminated
strings? Or is this a bug to be rectified?
Please cc me on any replies.
	Thanks, MMCohen

PS. system is mandrake 9.0
test program is http://mambo.ucsc.edu/psl/lrt.f


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