Sha256: 9164dd67b46e35814c5a673ca40d4d43a55df16cb5142693715d009e81406ed2

Contents?: true

Size: 535 Bytes

Versions: 117

Compression:

Stored size: 535 Bytes

Contents

#ifndef ANAGRAM_H
#define ANAGRAM_H

#define MAX_STR_LEN 20

enum anagram_status {
   UNCHECKED = -1,
   NOT_ANAGRAM,
   IS_ANAGRAM
};

struct candidate {
   enum anagram_status is_anagram;
   const char *candidate;
};

struct candidates {
   struct candidate *candidate;
   size_t count;
};

/**
 * @description - determines if any of the words in candidate are anagrams
 *                for word.  Word buffer and candidate structures may be modified.
 */
void anagrams_for(const char *word, struct candidates *candidates);

#endif

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.97 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.96 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.95 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.94 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.93 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.92 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.91 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.90 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.89 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.88 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.87 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.86 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.85 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.84 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.83 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.82 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.81 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.80 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.79 tracks/c/exercises/anagram/src/anagram.h