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.180 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.179 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.178 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.177 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.176 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.175 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.174 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.173 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.172 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.171 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.170 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.169 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.167 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.166 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.165 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.164 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.163 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.162 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.161 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.160 tracks/c/exercises/anagram/src/anagram.h