twistturns

generates dot files of the graph of all reachable states in a Top Spin puzzle
git clone https://wehaveforgeathome.hates.computer/twistturns.git
Log | Files | Refs | LICENSE

primes.h (313B)


      1 /**
      2 * primes.h : "header" (i.e. API interface) for primes.c code.
      3 *
      4 * adapted from http://cs/courses/fall2008/algorithms/code/c_examples/multiple_files/some_func.h
      5 **/
      6 
      7 typedef struct prime_type *prime;
      8 struct prime_type {
      9 	int value;
     10 	prime next;
     11 };
     12 
     13 prime first_n_primes(int n);
     14 
     15 int print_primes(prime first);