News for hackers. Stuff that matters.
Re:C, Fortran, and single-character strings by 0xffff2 on Friday June 21, 2019 @04:58PM (#20246264)
I've never used FORTRAN, so I'm just going off of my reading of the article. It looks to me like the correct requirement is that the C source code itself include the string length, and that developer have not been doing so.
Re:C, Fortran, and single-character strings by eridius on Friday June 21, 2019 @06:30PM (#20246799)
Oh I see. I was thinking that calls to Fortran functions were actually recognizable by the compiler, but you're right, the code snippet right at the top shows a manually-inserted strlen(s) in the C code.