Re: Problema con C
On Tue, 24 Aug 1999, Leo wrote:
> > Devo passare ad una funzione ( C ovviamente ) una struttura che contiene
> > un puntatore ad intero tipo:
> > typedef struct info{
> > int *valore;
> > ...
> > } valore;
/* Io ho sempre usato: */
struct info{
int *valore;
...
};
typedef struct info INFO;
/* e poi */
...
void funzione(INFO *m)
{ m->valore = (int) (3.4);
/* oppure */
m->valore = 6;
...
}
...
spero di ricordarmi bene... e' un po' che non uso il C! ;-)
Ciao,
Carlo
-----------------------------------------------------------------
Dr. Carlo Nervi, Universita' di Torino,
Dipartimento di Chimica IFM, via P. Giuria 7, 10125 Torino, ITALY
phone: (Italy)-11-6707508 | e-mail: nervi@lem.ch.unito.it
fax: (Italy)-11-6707855 | http://lem.ch.unito.it/
Reply to: