commit 3aa6422c669636bdf3bf4bf304d3e6ea357826eb
parent 8dc79ed97b2cb6fb26a5916c8b16a95455fe58f1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 23 Nov 2015 14:15:34 +0100
Use strtok_s rather strtok_r with CL
Fix typos in the help message of the command.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/schiff_args.c b/src/schiff_args.c
@@ -38,6 +38,7 @@
#ifdef COMPILER_CL
#include <getopt.h>
+ #define strtok_r strtok_s
#else
#include <unistd.h>
#endif
@@ -94,7 +95,7 @@ print_help(const char* binary)
printf(
" -c RDISTRIB,HDISTRIB[,N]\n"
" the soft particles are cylindrical meshes discretized in N\n"
-" slices. By default N is %u. RDISTRIB and HDISTRIB ar the\n"
+" slices. By default N is %u. RDISTRIB and HDISTRIB are the\n"
" distributions of, respectively, the radius and the height\n"
" parameters of the cylinder.\n",
SCHIFF_CYLINDER_DEFAULT.nslices);
@@ -141,7 +142,7 @@ print_help(const char* binary)
" -u MDISTRIB,N2DISTRIB[,N]\n"
" the soft particles are 3D super shapes discretized in N slices\n"
" along 2PI. By default N is %u. The A, B, N0 and N1 parameters\n"
-" of the super formulas are fixed to 1 while the MDISTRIBG and\n"
+" of the super formulas are fixed to 1 while the MDISTRIB and\n"
" the N2DISTRIB control the distribution of the M, and N2\n"
" supershape parameters, respectively.\n",
SCHIFF_SUPER_SHAPE_DEFAULT.nslices);