POV-Ray : Newsgroups : povray.bugreports : String literals can only be 125 characters long : Re: String literals can only be 125 characters long Server Time
18 Jun 2024 09:27:07 EDT (-0400)
  Re: String literals can only be 125 characters long  
From: Nieminen Mika
Date: 4 Jun 1999 04:19:12
Message: <37577df0.0@news.povray.org>
Ralf Muschall <rmu### [at] t-onlinede> wrote:
: 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.

  filepos=ftell(InFile);
  for(i=StartingQuoteIndex+1; getc(InFile)!='"'; i++);
  fseek(filepos);
  char* String=malloc(i-StartingQuoteIndex-1);
  fgets(String, i-StartingQuoteIndex-1, InFile);

  What's so difficult here?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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