POV-Ray : Newsgroups : povray.bugreports : String literals can only be 125 characters long : Re: String literals can only be 125 characters long Server Time
8 Jun 2024 09:07:48 EDT (-0400)
  Re: String literals can only be 125 characters long  
From: Ralf Muschall
Date: 3 Jun 1999 19:59:12
Message: <37570887.B1E1021C@t-online.de>
Nieminen Mika wrote:

>   Why?
>   It should be very easy to parse a string literal without length limitations
> (compilers do). Just count the number of characters, allocate that amount

Probably because nobody wanted to write such a function,
ANSI libc.a does not contain one, and POV was written in a
time before GNU hackers told that all limits are evil.
AFAIK glibc has an extension (getline) which does the job.

Ralf


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.