Release calc version 2.11.0t3

This commit is contained in:
Landon Curt Noll
1999-09-28 02:19:47 -07:00
parent 4b98d5ff0e
commit 1ce630ac19
18 changed files with 267 additions and 250 deletions

View File

@@ -52,7 +52,7 @@ char buf[BUFSIZ];
#include <varargs.h>
void
try(char *fmt, ...)
try_this(char *fmt, ...)
{
va_list ap;
@@ -68,7 +68,7 @@ try(char *fmt, ...)
#else
void
try(char *a, int b, char *c, int d)
try_this(char *a, int b, char *c, int d)
{
return;
}
@@ -87,7 +87,7 @@ main(void)
/*
* test variable args and vsprintf/sprintf
*/
try("@%d:%s:%d@", 1, "hi", 2);
try_this("@%d:%s:%d@", 1, "hi", 2);
if (strcmp(buf, "@1:hi:2@") != 0) {
#if !defined(DONT_HAVE_VSPRINTF)
/* <varargs.h> with vsprintf() didn't work */
@@ -96,7 +96,7 @@ main(void)
#endif
exit(1);
}
try("%s %d%s%d%d %s",
try_this("%s %d%s%d%d %s",
"Landon Noll 1st proved that", 2, "^", 23209, -1, "was prime");
if (strcmp(buf,
"Landon Noll 1st proved that 2^23209-1 was prime") != 0) {