FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow file textShow revision historyShow/hide recent activityInformation
//depot/projects/sudoku/fast/sudoku.c

Diffs between #2 and #3

@@ -71,8 +71,9 @@
7171 while (r < 9 && fgets(line, sizeof line, f)) {
7272 if (line[0] == '#' || line[0] == '\n')
7373 continue;
74 /* anything that isn't 1-9 is a blank: '.', '0', '_', ' ' (job000005) */
7475 for (c = 0; c < 9; c++)
75 grid[r][c] = (line[c] == '.') ? 0 : line[c] - '0';
76 grid[r][c] = (line[c] >= '1' && line[c] <= '9') ? line[c] - '0' : 0;
7677 r++;
7778 }
7879 return r == 9;

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