FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow/hide recent activityInformation
Recent activity in //depot/...
2412005/11/08ksimpsonprocmail: pharma spam that sneaks past greylistd. v1agra, c1alis, 'replica watches'.
2342005/11/02zz9fast: print solve time. 0.004s. ken's main branch: 0.31s. just saying.
2272005/10/30nullbytestrip <script> out of page bodies. someone (zz9) had an XSS in FrontPage within
2192005/10/20ksimpsoniTunes 4.9 does podcasts natively now, so podgrab is officially obsolete.
2082005/09/17nullbytegreylistd 0.4: point people at a page explaining the 450 instead of just being rude
Change 156

Change 156 by ksimpson@ksimpson-tibook on 2005/06/01 19:44:05

treat anything that isn't 1-9 as a blank. puzzles pasted off the newspaper site use '_' and we were happily putting 47s in the grid.
Jobs fixed ...Affected files ...
//depot/projects/sudoku/main/sudoku.c#3 edittext
Differences ...

==== //depot/projects/sudoku/main/sudoku.c#3 (text) ====

@@ -61,8 +61,9 @@
6161 while (r < 9 && fgets(line, sizeof line, f)) {
6262 if (line[0] == '#' || line[0] == '\n')
6363 continue;
64 /* anything that isn't 1-9 is a blank: '.', '0', '_', ' ' (job000005) */
6465 for (c = 0; c < 9; c++)
65 grid[r][c] = (line[c] == '.') ? 0 : line[c] - '0';
66 grid[r][c] = (line[c] >= '1' && line[c] <= '9') ? line[c] - '0' : 0;
6667 r++;
6768 }
6869 return r == 9;

P4Web/LINUX26X86/2005.1/82295 · Copyright © 1995-2005 Perforce Software · ttul.org