[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Examples in INSTALL need <stdlib.h> [PATCH]
From: |
Richard Dawe |
Subject: |
Examples in INSTALL need <stdlib.h> [PATCH] |
Date: |
Mon, 02 Dec 2002 23:28:50 +0000 |
Hello.
The INSTALL file in GMP 4.1.1 (and probably) has a couple
of example programs that use the `exit' function. `exit' is prototyped
in <stdlib.h>, but neither program includes it. (Why do they use `exit'
and not 'return' BTW?) Please find a changelog entry & patch below.
Bye, Rich =]
2002-12-02 Richard Dawe <address@hidden>
* INSTALL: Example programs need <stdlib.h> for `exit' prototype.
--- install.orig 2002-12-02 23:23:46.000000000 +0000
+++ install 2002-12-02 23:24:10.000000000 +0000
@@ -59,6 +59,7 @@ command line, multiplies them, and print
#include <stdio.h>
+ #include <stdlib.h>
#include <gmp.h> /* All GMP programs need to include gmp.h */
main (int argc, char **argv)
@@ -100,6 +101,7 @@ avoided. An experienced GMP user might
#include <stdio.h>
+ #include <stdlib.h>
#include <gmp.h>
main (int argc, char **argv)
- Examples in INSTALL need <stdlib.h> [PATCH],
Richard Dawe <=