Sha256: 20fe852e99f98e9d7ade3750feee8c174202b213c85143494a50b7f5a40d46d5
Contents?: true
Size: 497 Bytes
Versions: 133
Compression:
Stored size: 497 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
133 entries across 133 versions & 1 rubygems