From: Gal Newsgroups: comp.os.msdos.djgpp Subject: - HELP! - a little mixed up in C/C++ pointers Date: Mon, 18 Aug 1997 00:14:10 -0700 Organization: Spamless Society Lines: 31 Message-ID: <33F7F642.30B9@usa.net> Reply-To: wribak AT usa DOT net NNTP-Posting-Host: lap-ca1-24.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Okay here I start: // defining types variables struct IndexFileName { char FileName[12]; } int IndexFileName; // our function int compare (char *FileName) { return strcmp(Index.FileName, FileName); } //main void main () { printf("%d\n", compare("TEST.TST")); return 0; } -------- The question is, what do I have to put in front of "Index.FileName" in order to have it become a pointer so I can do a compare? I'm a bit mixed up in C :)