From: David Arnold Newsgroups: comp.os.msdos.djgpp Subject: Help needed with sizeof command. Date: Sat, 02 Jan 1999 14:34:08 -0800 Organization: College of the Redwoods Lines: 41 Message-ID: <368E9EE0.CA5E941B@northcoast.com> NNTP-Posting-Host: 208.25.113.157 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: 915316052 B/00VXNXN719DD019C usenet87.supernews.com X-Complaints-To: newsabuse AT remarQ DOT com X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I am new to djgpp and C, so be kind. I am working through a book on C and the program #include #include void clrscr(void); int days[]={31,28,31,30,31,30,31,31,30,31}; main() { int index; extern int days[]; clrscr(); for(index=0;index < sizeof days/(sizeof(int));index++) printf("Month %d has %d days.\n",index+1,days[index]); return 0; } bombs with error message "sizeof applied to incomplete type." I tried Ctrl+F1, but no help provided. Apparently, the sizeof command is not part of libc? Am I correct in this? How does one use one's djgpp and RHIDE setup to get help on standard commands such as sizeof, for, while, etc? Can anyone suggest what I am doing wrong? Best workarounds? Email appreciated. -- David Arnold College of the Redwoods Mathematics Department 7351 Tompkins Hill Road Eureka, CA 95501 (707) 445-6917 http://online.redwoods.cc.ca.us/instruct/darnold/index.htm