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.119 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.118 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.117 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.116 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.115 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.114 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.113 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.111 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.110 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.109 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.108 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.107 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.106 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.105 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.104 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.103 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.102 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.101 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.100 tracks/c/exercises/anagram/src/anagram.h
trackler-2.2.1.99 tracks/c/exercises/anagram/src/anagram.h