From 5e06f05acdc0f441446faa743b46e22c131c456c Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 11 Mar 2008 12:09:01 +0000 Subject: [PATCH] Fix the error "set_union.cpp", line 55: Error: The function "atoi" must have a prototype. detected by Sun CC. --- .../examples/Boolean_set_operations_2/set_union.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Boolean_set_operations_2/examples/Boolean_set_operations_2/set_union.cpp b/Boolean_set_operations_2/examples/Boolean_set_operations_2/set_union.cpp index 87d767827a8..b773a38e6b2 100644 --- a/Boolean_set_operations_2/examples/Boolean_set_operations_2/set_union.cpp +++ b/Boolean_set_operations_2/examples/Boolean_set_operations_2/set_union.cpp @@ -52,7 +52,7 @@ int main (int argc, char * argv[]) { // Read the number of circles from the command line. unsigned int n_circles = 8; - if (argc > 1) n_circles = atoi(argv[1]); + if (argc > 1) n_circles = std::atoi(argv[1]); // Create the circles, equally spaced of the circle x^2 + y^2 = 1. const double pi = std::atan(1.0) * 4;