[ILUG] C initialistaion question.

From: Conor Daly (conor.daly at domain met.ie)
Date: Fri 25 May 2001 - 11:02:58 IST


Given:

int a, b, c, d;
float g, h, i, j;

a=-999;
b=-999;
c=-999;
d=-999;

g=-999.9;
h=-999.9;
i=-999.9;
j=-999.9;

can I do something like

int {a, b, c, d} =-999;
float {g, h, i, j} =-999.9;

I kinda thought I'd seen something like this somewhere but I don't have the
book with me just now.

Thinking in ansi c of course, portability is a priority (not because this'll
be running on lots of different machines (it won't) but because we don't
want to have to go through a bazillion proggies that someone else wrote 15
years ago fixing stuff when we upgrade to a new box / OS (Of course, at that
stage, we'll probably need to rewrite the embedded SQL anyhow!))

Conor

BTW, anyone know how near Ingres are to a linux sql client or preprocessor?

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064275
------------------------------------
  9:56am  up 20:59,  9 users,  load average: 0.05, 0.01, 0.00


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:27 GMT