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_06.c
14*/
15
16
17#define MAX_SIZE 256
18#define MAX_STRING_SIZE 64
19
20int init(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
30 char **u_animals;
31
32 int number_of_animals;
33
34 int i;
35
36 animals = (char**) malloc(MAX_SIZE);
37
38 for(i=0; i<MAX_SIZE; i++)
39 animals[i] = (char*) malloc(MAX_STRING_SIZE);
40
41 number_of_animals = init(animals);
42
43 u_animals = replace_with_upper(animals,
44 number_of_animals);
45
46 print_animals(animals,
47 u_animals,
48 number_of_animals);
49
50}