Sha256: 4309b855d4b1f540b4d8ad6c5a071cea09c8f08563e5f0864ab0d299f9b69df0

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

#ifndef PALINDROME_PRODUCTS_H
#define PALINDROME_PRODUCTS_H

#define MAXERR 100

struct factors {
   int factor_a;
   int factor_b;
   struct factors *next;
};

typedef struct factors factor_t;

struct product {
   int smallest;
   int largest;
   factor_t *factors_sm;
   factor_t *factors_lg;
   char error[MAXERR];
};

typedef struct product product_t;

product_t *get_palindrome_product(int from, int to);
void free_product(product_t * p);

#endif

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trackler-2.2.1.117 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.116 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.115 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.114 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.113 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.111 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.110 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.109 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.108 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.107 tracks/c/exercises/palindrome-products/src/example.h
trackler-2.2.1.106 tracks/c/exercises/palindrome-products/src/example.h