I have a function that is changing the first letter in the month to lower case and I want to make a change that stops this from occuring. I believe I found a if statement that is making this change. My question is should I just make a change in the code below to say toupper where the first letter of each month is shown or find another solution because the first letter is already in upper case? If more info is needed from this small function I will glady post. Thanks.

[code]

123 if ((tolower(tmp_mon[0]) == 'j') &&
124 (tolower(tmp_mon[1]) == 'a') &&
125 (tolower(tmp_mon[2]) == 'n'))
126 ff_time.tm_mon = 0;
127 if ((tolower(tmp_mon[0]) == 'f') &&
128 (tolower(tmp_mon[1]) == 'e') &&
129 (tolower(tmp_mon[2]) == 'b'))
130 ff_time.tm_mon = 1;
131 if ((tolower(tmp_mon[0]) == 'm') &&
132 (tolower(tmp_mon[1]) == 'a') &&
133 (tolower(tmp_mon[2]) == 'r'))
134 ff_time.tm_mon = 2;
135 if ((tolower(tmp_mon[0]) == 'a') &&
136 (tolower(tmp_mon[1]) == 'p') &&
137 (tolower(tmp_mon[2]) == 'r'))
138 ff_time.tm_mon = 3;
139 if ((tolower(tmp_mon[0]) == 'm') &&
140 (tolower(tmp_mon[1]) == 'a') &&
141 (tolower(tmp_mon[2]) == 'y'))
142 ff_time.tm_mon = 4;
143 if ((tolower(tmp_mon[0]) == 'j') &&
144 (tolower(tmp_mon[1]) == 'u') &&
145 (tolower(tmp_mon[2]) == 'n'))
146 ff_time.tm_mon = 5;
147 if ((tolower(tmp_mon[0]) == 'j') &&
148 (tolower(tmp_mon[1]) == 'u') &&
149 (tolower(tmp_mon[2]) == 'l'))
150 ff_time.tm_mon = 6;
151 if ((tolower(tmp_mon[0]) == 'a') &&
152 (tolower(tmp_mon[1]) == 'u') &&
153 (tolower(tmp_mon[2]) == 'g'))
154 ff_time.tm_mon = 7;
155 if ((tolower(tmp_mon[0]) == 's') &&
156 (tolower(tmp_mon[1]) == 'e') &&
157 (tolower(tmp_mon[2]) == 'p'))
158 ff_time.tm_mon = 8;
159 if ((tolower(tmp_mon[0]) == 'o') &&
160 (tolower(tmp_mon[1]) == 'c') &&
161 (tolower(tmp_mon[2]) == 't'))
162 ff_time.tm_mon = 9;
163 if ((tolower(tmp_mon[0]) == 'n') &&
164 (tolower(tmp_mon[1]) == 'o') &&
165 (tolower(tmp_mon[2]) == 'v'))
166 ff_time.tm_mon = 10;
167 if ((tolower(tmp_mon[0]) == 'd') &&
168 (tolower(tmp_mon[1]) == 'e') &&
169 (tolower(tmp_mon[2]) == 'c'))
170 ff_time.tm_mon = 11;