www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/11/17:10:15

Message-ID: <000201be6c04$e124b1e0$781b2bc8@luis>
From: "Luis Pistoia" <lu5gpl AT arnet DOT com DOT ar>
To: "Lista djgpp" <djgpp AT delorie DOT com>
Subject: Pointer to members of strcut
Date: Thu, 11 Mar 1999 18:19:00 -0300
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

Could anyone give me a little help on such a beginner's topic?
I canīt find the way to point to them....

I'm trying on something like this:


struct

  char *lastname;
  char *firstname;
  char *address;
  char *city;
  char *zip;
  char *areacode;
  char *phone;
  char *email;
}data;

main(){
/**********/
}

char inputfield(char max,char colx,char rowy,/*unknown pointer*/){

struct agenda *sp;
sp=&data;

  ScreenPutString(sp->lastname,31,colx,rowy);
                                ^^^^^^^^^^^^^^^^^
                               /*how can I get a generic pointer*/
                               /*that takes lastname, firstname */
                               /*or whatever structure's member */
/**/
  return(some);
}



Thanks in advance.
Luis.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright Đ 2019   by DJ Delorie     Updated Jul 2019