blob: 4568a10359e091e07152fd224f3cffbbe877b462 (
plain)
1
2
3
4
5
6
7
8
9
10
|
Thought I'd also have a go at translating ch-1.pl and ch-2.pl into C..
Both C versions produce near-identical (non-debugging and even debugging)
output to the Perl originals.
They use several of my regular support modules:
- a command-line argument processing module args.[ch],
- a csvlist-of-int parsing module parseints.[ch], and
- an int-array printing module printarray.[ch].
- a prime number generator module primes.[ch]
|