Sha256: 70ef809056ad4c411503d7cc84513b06e82d8b6c46f0135cb99299c7e772a09b

Contents?: true

Size: 499 Bytes

Versions: 50

Compression:

Stored size: 499 Bytes

Contents

#ifndef _ALLERGIES_H
#define _ALLERGIES_H

#include <stdbool.h>

typedef enum {
   Allergen_Eggs = 0,
   Allergen_Peanuts,
   Allergen_Shellfish,
   Allergen_Strawberries,
   Allergen_Tomatoes,
   Allergen_Chocolate,
   Allergen_Pollen,
   Allergen_Cats,
   Allergen_Count
} Allergen_t;

typedef struct {
   int count;
   Allergen_t *allergens;
} Allergen_List_t;

bool is_allergic_to(Allergen_t allergen, unsigned int score);
void get_allergens(unsigned int score, Allergen_List_t * list);

#endif

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
trackler-2.0.6.6 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.5 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.4 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.3 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.2 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.1 tracks/c/exercises/allergies/src/example.h
trackler-2.0.6.0 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.18 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.17 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.16 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.15 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.14 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.13 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.12 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.11 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.10 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.9 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.8 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.7 tracks/c/exercises/allergies/src/example.h
trackler-2.0.5.6 tracks/c/exercises/allergies/src/example.h