HelenOS sources
NUMSPOTS 85 uspace/app/tetris/scores.c static struct highscore scores[NUMSPOTS];
NUMSPOTS 107 uspace/app/tetris/scores.c for (i = 0; i < NUMSPOTS - 1; i++)
NUMSPOTS 114 uspace/app/tetris/scores.c scores[NUMSPOTS - 1].hs_level, scores[NUMSPOTS - 1].hs_name, scores[NUMSPOTS - 1].hs_score);
NUMSPOTS 133 uspace/app/tetris/scores.c str_cpy(scores[NUMSPOTS - 1].hs_name, STR_BOUNDS(MAXLOGNAME) + 1,
NUMSPOTS 139 uspace/app/tetris/scores.c printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
NUMSPOTS 167 uspace/app/tetris/scores.c uc = str_decode(scores[NUMSPOTS - 1].hs_name,
NUMSPOTS 173 uspace/app/tetris/scores.c scores[NUMSPOTS - 1].hs_name[off] = '\0';
NUMSPOTS 177 uspace/app/tetris/scores.c if (chr_encode(kev->c, scores[NUMSPOTS - 1].hs_name,
NUMSPOTS 181 uspace/app/tetris/scores.c scores[NUMSPOTS - 1].hs_name[off] = '\0';
NUMSPOTS 186 uspace/app/tetris/scores.c printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
NUMSPOTS 190 uspace/app/tetris/scores.c scores[NUMSPOTS - 1].hs_score = score;
NUMSPOTS 191 uspace/app/tetris/scores.c scores[NUMSPOTS - 1].hs_level = level;
NUMSPOTS 193 uspace/app/tetris/scores.c i = NUMSPOTS - 1;
NUMSPOTS 197 uspace/app/tetris/scores.c for (j = NUMSPOTS - 2; j > i; j--)
NUMSPOTS 200 uspace/app/tetris/scores.c copyhiscore(i, NUMSPOTS - 1);
NUMSPOTS 206 uspace/app/tetris/scores.c for (i = 0; i < NUMSPOTS; i++) {
NUMSPOTS 208 uspace/app/tetris/scores.c scores[i].hs_score = (NUMSPOTS - i) * 200;
NUMSPOTS 223 uspace/app/tetris/scores.c cnt = fread(scores, sizeof(struct highscore), NUMSPOTS, f);
NUMSPOTS 226 uspace/app/tetris/scores.c if (cnt != NUMSPOTS || rc != 0)
NUMSPOTS 244 uspace/app/tetris/scores.c cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
NUMSPOTS 247 uspace/app/tetris/scores.c if (cnt != NUMSPOTS || rc != 0)
NUMSPOTS 86 uspace/dist/src/c/demos/tetris/scores.c static struct highscore scores[NUMSPOTS];
NUMSPOTS 108 uspace/dist/src/c/demos/tetris/scores.c for (i = 0; i < NUMSPOTS - 1; i++)
NUMSPOTS 115 uspace/dist/src/c/demos/tetris/scores.c scores[NUMSPOTS - 1].hs_level, scores[NUMSPOTS - 1].hs_name, scores[NUMSPOTS - 1].hs_score);
NUMSPOTS 133 uspace/dist/src/c/demos/tetris/scores.c str_cpy(scores[NUMSPOTS - 1].hs_name, STR_BOUNDS(MAXLOGNAME) + 1,
NUMSPOTS 139 uspace/dist/src/c/demos/tetris/scores.c printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
NUMSPOTS 163 uspace/dist/src/c/demos/tetris/scores.c uc = str_decode(scores[NUMSPOTS - 1].hs_name,
NUMSPOTS 169 uspace/dist/src/c/demos/tetris/scores.c scores[NUMSPOTS - 1].hs_name[off] = '\0';
NUMSPOTS 173 uspace/dist/src/c/demos/tetris/scores.c if (chr_encode(kev->c, scores[NUMSPOTS - 1].hs_name,
NUMSPOTS 177 uspace/dist/src/c/demos/tetris/scores.c scores[NUMSPOTS - 1].hs_name[off] = '\0';
NUMSPOTS 182 uspace/dist/src/c/demos/tetris/scores.c printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
NUMSPOTS 186 uspace/dist/src/c/demos/tetris/scores.c scores[NUMSPOTS - 1].hs_score = score;
NUMSPOTS 187 uspace/dist/src/c/demos/tetris/scores.c scores[NUMSPOTS - 1].hs_level = level;
NUMSPOTS 189 uspace/dist/src/c/demos/tetris/scores.c i = NUMSPOTS - 1;
NUMSPOTS 193 uspace/dist/src/c/demos/tetris/scores.c for (j = NUMSPOTS - 2; j > i; j--)
NUMSPOTS 196 uspace/dist/src/c/demos/tetris/scores.c copyhiscore(i, NUMSPOTS - 1);
NUMSPOTS 202 uspace/dist/src/c/demos/tetris/scores.c for (i = 0; i < NUMSPOTS; i++) {
NUMSPOTS 204 uspace/dist/src/c/demos/tetris/scores.c scores[i].hs_score = (NUMSPOTS - i) * 200;
NUMSPOTS 219 uspace/dist/src/c/demos/tetris/scores.c cnt = fread(scores, sizeof(struct highscore), NUMSPOTS, f);
NUMSPOTS 222 uspace/dist/src/c/demos/tetris/scores.c if (cnt != NUMSPOTS || rc != 0)
NUMSPOTS 240 uspace/dist/src/c/demos/tetris/scores.c cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
NUMSPOTS 243 uspace/dist/src/c/demos/tetris/scores.c if (cnt != NUMSPOTS || rc != 0)
HelenOS homepage, sources at GitHub