|
From: | Michael McQuinn |
Subject: | any information will help |
Date: | Thu, 01 Nov 2001 10:24:52 -0500 |
i keep getting the following errors:
testVarargs.c: In function `fl':
testVarargs.c:10: parse error before "char"
testVarargs.c:10: parse error before "char"
testVarargs.c:10: parse error before "char"
testVarargs.c:10: parse error before "char"
testVarargs.c:10: parse error before "char"
testVarargs.c:10: parse error before ')' token
the following is the sample code that i wrote and
trying to compile:
#include <stdarg.h>
void fl(int nptrs, ...)
{
va_list ap;
char *file;
int argno = 0;
va_start(ap, nptrs);
file = va_arg(ap, char *);
va_end(ap);
}
any ideas? i am sure that it is a compile option
thing but i can't seem to identify the proper
option to use.
mike
-- ********************************** Michael McQuinn Dolphin Technology Inc. 1300B Floyd Ave. Rome, NY 13440 Email: mmcquinn@dolphtech.com Phone: 315.334.4892 ext. 232
[Prev in Thread] | Current Thread | [Next in Thread] |