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_07.c
14*/
15
16
17#define MAX_SIZE 256
18#define MAX_STRING_SIZE 64
19
20int get_data(char**);
21
22char** replace_with_upper(char**, int);
23
24void print_animals(char**, char**, int);
25
26int main(int argc, char *argv[]) {
27
28 char **animals,
29 **u_animals;
30
31 int i,
32 number_of_animals;
33
34 animals = (char**) malloc(MAX_SIZE);
35
36 for(i=0; i<MAX_SIZE; i++)
37 animals[i] = (char*) malloc(MAX_STRING_SIZE);
38
39 number_of_animals = get_data(animals);
40
41 u_animals = replace_with_upper(animals,
42 number_of_animals);
43
44 print_animals(animals,
45 u_animals,
46 number_of_animals);
47
48}