Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,049 of 243,242    |
|    Michael Sanders to Ben Bacarisse    |
|    Re: strspn()    |
|    22 Nov 25 22:03:59    |
      From: porkchop@invalid.foo              On Sat, 22 Nov 2025 02:41:11 +0000, Ben Bacarisse wrote:              > int i = 0;       > while (i < 4 && colorSpec[i] >= '1' && colorSpec[i] <= '8') i++;       > int ok = i == 4 && colorSpec[i] == 0;              Nice/clean/succinct.              --       :wq       Mike Sanders              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca