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_04.c
14*/
15
16
17char* to_upper(char*);
18
19#define MAX_SIZE 256
20#define MAX_STRING_SIZE 64
21
22int main(int argc, char *argv[]) {
23
24 char *animals[] = {"cat",
25 "tiger",
26 "lion",
27 "dog"};
28
29 char u_animals[MAX_SIZE][MAX_STRING_SIZE];
30
31 int i, n;
32
33 n = 4;
34 for(i=0; i<n; i++) {
35 printf("%s\n", animals[i]);
36
37 strcpy(u_animals[i], to_upper(animals[i]));
38
39 printf("%s\n", u_animals[i]);
40 }
41
42}