1/*
2 Copyright(C) 1998
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : January 1, 1998.
11 authorĀ : Salih Yurttas.
12
13 a_09.c
14*/
15
16
17#include "parameters.h"
18
19#include "common.h"
20
21#include "f_specs.h"
22
23int main(int argc, char *argv[]) {
24
25 char **animals,
26 **u_animals;
27
28 int i,
29 number_of_animals;
30
31 animals = (char**) malloc(MAX_SIZE);
32
33 for(i=0; i<MAX_SIZE; i++)
34 animals[i] = (char*) malloc(MAX_STRING_SIZE);
35
36 do {
37 number_of_animals = get_data(animals);
38
39 u_animals = replace_with_upper(animals,
40 number_of_animals);
41
42 print_animals(animals,
43 u_animals,
44 number_of_animals);
45 }
46 while((YN)(toupper(get_char("Yes/No")))=='Y');
47
48}