Path: utzoo!attcan!uunet!husc6!rutgers!okstate!romed!drd!mark From: mark@drd.UUCP (Mark Lawrence) Newsgroups: comp.lang.c Subject: function prototype problem Message-ID: <310@drd.UUCP> Date: 11 Nov 88 20:52:39 GMT Reply-To: mark@drd.UUCP () Distribution: na Organization: in *this* company!? Lines: 32 I compile the following code fragment: -- #include char *rpeet ( short, char ); char rpeet_temp[81]; char *rpeet ( num, ch ) short num; char ch; { int i; memset( rpeet_temp, ch, num ); rpeet_temp[num] = '\0'; return( rpeet_temp ); } -- and get the following gripe from my compiler (gcc 1.30): rpeet.c: In function rpeet: rpeet.c:9: argument `num' doesn't match function prototype rpeet.c:9: argument `ch' doesn't match function prototype Am I doing something wrong here or is the compiler just grumpy today? (Please respond by e-mail. I don't normally read this group). Mark tulsun!drd!mark@Sun.COM DRD Corporation mlawrence@jarsun1.ZONE1.COM (918)743-3013 drd!mark@apctrc.UU.NET okstate!romed!drd!mark@rutgers.EDU