Skip to content

Commit

Permalink
fix: remove the main function for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zumh committed Oct 30, 2023
1 parent 8004fc5 commit 74b1f15
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions exercism/hamming/hamming.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@
*/

int computer(const char *lhgs, const char *rhs);

int main(void) {
// Define two character arrays (strings) lhgs and rhs
const char* lhgs = "GAGCCTACTAACGGGAT";
const char* rhs = "CATCGTAATGACGGCCT";

// Call the 'computer' function with lhgs and rhs as arguments and store the result in 'distance'
int distance = computer(lhgs, rhs);

printf("%d\n", distance);

return 0;
}

int computer(const char *lhgs, const char *rhs) {
int distance = 0;

Expand Down

0 comments on commit 74b1f15

Please sign in to comment.