Differences From Artifact [2b60469d03]:
- File aocutils.c — part of check-in [3ff4b256a5] at 2024-12-05 10:53:16 on branch trunk — 202405 -- download input, prepare skeleton (user: nnz, size: 1834) [annotate] [blame] [check-ins using]
To Artifact [ff66d0a337]:
- File aocutils.c — part of check-in [682dabca63] at 2024-12-06 12:05:25 on branch trunk — moved and renamed function to aocutils.c (user: nnz, size: 1934) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + + + + | #include <stdio.h> #include <stdlib.h> #include "aocutils.h" size_t linearize2d(unsigned width, unsigned row, unsigned col) { return (row * width) + col; } size_t text2array(unsigned **dst, const char *r) { unsigned *a = malloc(512 * sizeof *a); size_t na = 0, sa = 512; char *err; unsigned v; for (;;) { |
︙ |