RE: How to enter a floating-point number ?



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]