linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about Malloc
@ 2004-10-10  5:31 Edward Parrilla
  2004-10-10  6:13 ` Jeff Woods
  2004-10-10 11:13 ` Jan-Benedict Glaw
  0 siblings, 2 replies; 6+ messages in thread
From: Edward Parrilla @ 2004-10-10  5:31 UTC (permalink / raw)
  To: linux prg

Hi all,
I got the following structure:
typedef struct  {
 	char *file;
	char *ip_addres;
	}TABLE;

then define a pointer to it:

typedef TABLE *Recpointer;
Recpointer r;


I'm trying to use malloc as:

r=malloc(Recpointer);
but it gives me error.

What should be the right sintax?

Any help would be appreciated.
Thanks in advance

Ed


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-19 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10  5:31 Question about Malloc Edward Parrilla
2004-10-10  6:13 ` Jeff Woods
2004-10-10 11:13 ` Jan-Benedict Glaw
2004-10-19 12:41   ` Matías Aguirre
2004-10-19 13:27     ` Jan-Benedict Glaw
2004-10-19 13:52       ` Matías Aguirre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).