Sha256: c1e2d8eba1fc9274d42e068bfb92a855e9a78297eaf67d0193a2c19057421aee

Contents?: true

Size: 1.38 KB

Versions: 50

Compression:

Stored size: 1.38 KB

Contents

# Word Count

Given a phrase, count the occurrences of each word in that phrase.

For example for the input `"olly olly in come free"`

```plain
olly: 2
in: 1
come: 1
free: 1
```


## Getting Started

Make sure you have read the
[C page](http://exercism.io/languages/c) on the Exercism site. This covers
the basic information on setting up the development environment expected
by the exercises.


## Passing the Tests

Get the first test compiling, linking and passing by following the [three
rules of test-driven development][3-tdd-rules].

The included makefile can be used to create and run the tests using the `test`
task.

    make test

Create just the functions you need to satisfy any compiler errors and get the
test to fail. Then write just enough code to get the test to pass. Once you've
done that, move onto the next test.

[3-tdd-rules]: http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd

As you progress through the tests, take the time to refactor your
implementation for readability and expressiveness and then go on to the next
test.

Try to use standard C99 facilities in preference to writing your own
low-level algorithms or facilities by hand.

## Source

This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour.

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
trackler-2.2.1.44 tracks/c/exercises/word-count/README.md
trackler-2.2.1.43 tracks/c/exercises/word-count/README.md
trackler-2.2.1.42 tracks/c/exercises/word-count/README.md
trackler-2.2.1.41 tracks/c/exercises/word-count/README.md
trackler-2.2.1.40 tracks/c/exercises/word-count/README.md
trackler-2.2.1.39 tracks/c/exercises/word-count/README.md
trackler-2.2.1.38 tracks/c/exercises/word-count/README.md
trackler-2.2.1.37 tracks/c/exercises/word-count/README.md
trackler-2.2.1.36 tracks/c/exercises/word-count/README.md
trackler-2.2.1.35 tracks/c/exercises/word-count/README.md
trackler-2.2.1.34 tracks/c/exercises/word-count/README.md
trackler-2.2.1.33 tracks/c/exercises/word-count/README.md
trackler-2.2.1.32 tracks/c/exercises/word-count/README.md
trackler-2.2.1.31 tracks/c/exercises/word-count/README.md
trackler-2.2.1.30 tracks/c/exercises/word-count/README.md
trackler-2.2.1.29 tracks/c/exercises/word-count/README.md
trackler-2.2.1.28 tracks/c/exercises/word-count/README.md
trackler-2.2.1.27 tracks/c/exercises/word-count/README.md
trackler-2.2.1.26 tracks/c/exercises/word-count/README.md
trackler-2.2.1.25 tracks/c/exercises/word-count/README.md