RE: How to enter a floating-point number ?
- From: "Alan M. Evans" <ame1 extratech com>
- To: gtk-app-devel-list gnome org
- Subject: RE: How to enter a floating-point number ?
- Date: Wed, 26 May 2004 13:44:26 -0700
On Wed, 2004-05-26 at 13:24, Tom Liu wrote:
result[i] = islower (text[i]) ? toupper (text[i]) : text[i];
Isn't that kind of silly? Why not:
result[i] = toupper(text[i]);
Or else drop the g_new() and the for loop altogether and use
g_ascii_strup(), thus:
gchar *result = g_ascii_strup(text,length);
--
Alan M. Evans <ame1 extratech com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]