TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: ANDY THIBODEAU 76636,2300 (X)
from: Pete Lyall 76703,4230
date: 1990-10-02 17:51:32
subject: #7116-#c_problem

#: 7131 S3/Languages
    02-Oct-90  17:51:32
Sb: #7116-#c_problem
Fm: Pete Lyall 76703,4230
To: ANDY THIBODEAU 76636,2300 (X)

Andy -

Couple of things poke me in the eye....

struct sgtbuf *buffer - declares a pointer to a structure of type sgtbuf...
BUT... where is the storage for it? Also, how does the pointer get initialized
to point to it.

Perhaps you'd better try something like:

 struct sgtbuf buffer, *bp;
 bp = &buffer;


Also - when using pointers to structures, you need to use the '->' connector
vice the '.'. Example:

  buffer->t_sec (or whatever)...

Pete

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.