[plug] C Programmers Only

HILL Walter walter.hill at customs.gov.au
Mon Mar 15 14:41:47 WST 1999


Help,

If I have a struct such as:

struct call
	{
	int seq;
	struct date callDate;
	struct time start;
	struct time duration;
	char phoneNumber[PHONE_SIZE]
	};

Then I malloc() one.

How do I pass by reference one of the component of the struct?

ptr = (struct list_node *) malloc(sizeof(struct list_node))

sscanf(buf, "%d", ????)


Walter...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Walter Hill                                   ,-_|\
w.hill at computer.org                          /     \
walter.hill at customs.gov.au                   \_,-._/
+ 61 8 9430 1505 (Voice) + 61 8 9430 1391 (Fax).



More information about the plug mailing list