some comment spelling fixes
This commit is contained in:
@@ -580,7 +580,7 @@ strsubst(char *bp, const char *orig, const char *replacement)
|
||||
}
|
||||
|
||||
/* substitute the Nth occurrence of a substring within a string (in place);
|
||||
if N is 0, substitute all occurrences; returns the number of subsitutions;
|
||||
if N is 0, substitute all occurrences; returns the number of substitutions;
|
||||
maximum output length is BUFSZ (BUFSZ-1 chars + terminating '\0') */
|
||||
int
|
||||
strNsubst(
|
||||
@@ -722,7 +722,7 @@ distmin(coordxy x0, coordxy y0, coordxy x1, coordxy y1)
|
||||
return (dx < dy) ? dy : dx;
|
||||
}
|
||||
|
||||
/* square of euclidean distance between pair of pts */
|
||||
/* square of Euclidean distance between pair of pts */
|
||||
int
|
||||
dist2(coordxy x0, coordxy y0, coordxy x1, coordxy y1)
|
||||
{
|
||||
@@ -1330,7 +1330,7 @@ DISABLE_WARNING_FORMAT_NONLITERAL
|
||||
* Wrap reasons:
|
||||
* 1. If there are any platform issues, we have one spot to fix them -
|
||||
* snprintf is a routine with a troubling history of bad implementations.
|
||||
* 2. Add combersome error checking in one spot. Problems with text
|
||||
* 2. Add cumbersome error checking in one spot. Problems with text
|
||||
* wrangling do not have to be fatal.
|
||||
* 3. Gcc 9+ will issue a warning unless the return value is used.
|
||||
* Annoyingly, explicitly casting to void does not remove the error.
|
||||
|
||||
Reference in New Issue
Block a user