@@ -84,7 +84,7 @@ is respectively less than, matching, or greater than the array member.
84
84
85
85
@end deftypefn
86
86
87
- @c argv.c:142
87
+ @c argv.c:135
88
88
@deftypefn Extension char** buildargv (char * @var {sp })
89
89
90
90
Given a pointer to a string, parse the string extracting fields
@@ -95,7 +95,7 @@ remains unchanged. The last element of the vector is followed by a
95
95
@code {NULL } element.
96
96
97
97
All of the memory for the pointer array and copies of the string
98
- is obtained from @code {malloc }. All of the memory can be returned to the
98
+ is obtained from @code {xmalloc }. All of the memory can be returned to the
99
99
system with the single function call @code {freeargv }, which takes the
100
100
returned result of @code {buildargv }, as it's argument.
101
101
@@ -166,6 +166,14 @@ pointer encountered. Pointers to empty strings are ignored.
166
166
167
167
@end deftypefn
168
168
169
+ @c argv.c:470
170
+ @deftypefn Extension int countargv (char ** @var {argv })
171
+
172
+ Return the number of elements in @var {argv }.
173
+ Returns zero if @var {argv } is NULL.
174
+
175
+ @end deftypefn
176
+
169
177
@c crc32.c:141
170
178
@deftypefn Extension {unsigned int} crc32 (const unsigned char * @var {buf }, @
171
179
int @var {len }, unsigned int @var {init })
@@ -224,7 +232,7 @@ symbolic name or message.
224
232
225
233
@end deftypefn
226
234
227
- @c argv.c:361
235
+ @c argv.c:341
228
236
@deftypefn Extension void expandargv (int * @var {argcp }, char *** @var {argvp })
229
237
230
238
The @var {argcp } and @code {argvp } arguments are pointers to the usual
@@ -296,7 +304,24 @@ and backward slashes are equal.
296
304
297
305
@end deftypefn
298
306
299
- @c filename_cmp.c:81
307
+ @c filename_cmp.c:178
308
+ @deftypefn Extension int filename_eq (const void * @var {s1 }, const void * @var {s2 })
309
+
310
+ Return non-zero if file names @var {s1 } and @var {s2 } are equivalent.
311
+ This function is for use with hashtab.c hash tables.
312
+
313
+ @end deftypefn
314
+
315
+ @c filename_cmp.c:147
316
+ @deftypefn Extension hashval_t filename_hash (const void * @var {s })
317
+
318
+ Return the hash value for file name @var {s } that will be compared
319
+ using filename_cmp.
320
+ This function is for use with hashtab.c hash tables.
321
+
322
+ @end deftypefn
323
+
324
+ @c filename_cmp.c:89
300
325
@deftypefn Extension int filename_ncmp (const char * @var {s1 }, const char * @var {s2 }, size_t @var {n })
301
326
302
327
Return zero if the two file names @var {s1 } and @var {s2 } are equivalent
@@ -376,7 +401,7 @@ unchanged.
376
401
377
402
@end deftypefn
378
403
379
- @c argv.c:97
404
+ @c argv.c:90
380
405
@deftypefn Extension void freeargv (char ** @var {vector })
381
406
382
407
Free an argument vector that was built using @code {buildargv }. Simply
@@ -1465,6 +1490,13 @@ deallocate values.
1465
1490
1466
1491
@end deftypefn
1467
1492
1493
+ @c stack-limit.c:28
1494
+ @deftypefn Extension void stack_limit_increase (unsigned long @var {pref })
1495
+
1496
+ Attempt to increase stack size limit to @var {pref } bytes if possible.
1497
+
1498
+ @end deftypefn
1499
+
1468
1500
@c stpcpy.c:23
1469
1501
@deftypefn Supplemental char* stpcpy (char * @var {dst }, const char * @var {src })
1470
1502
@@ -1574,6 +1606,16 @@ memory was available. The result is always NUL terminated.
1574
1606
1575
1607
@end deftypefn
1576
1608
1609
+ @c strnlen.c:6
1610
+ @deftypefn Supplemental size_t strnlen (const char * @var {s }, size_t @var {maxlen })
1611
+
1612
+ Returns the length of @var {s }, as with @code {strlen }, but never looks
1613
+ past the first @var {maxlen } characters in the string. If there is no
1614
+ '\0' character in the first @var {maxlen } characters, returns
1615
+ @var {maxlen }.
1616
+
1617
+ @end deftypefn
1618
+
1577
1619
@c strrchr.c:6
1578
1620
@deftypefn Supplemental char* strrchr (const char * @var {s }, int @var {c })
1579
1621
@@ -1728,6 +1770,22 @@ This function is especially useful when dealing with filename sorting,
1728
1770
because filenames frequently hold indices/version numbers.
1729
1771
@end deftypefun
1730
1772
1773
+ @c timeval-utils.c:43
1774
+ @deftypefn Extension void timeval_add (struct timeval * @var {a }, @
1775
+ struct timeval *@var {b }, struct timeval *@var {result })
1776
+
1777
+ Adds @var {a } to @var {b } and stores the result in @var {result }.
1778
+
1779
+ @end deftypefn
1780
+
1781
+ @c timeval-utils.c:67
1782
+ @deftypefn Extension void timeval_sub (struct timeval * @var {a }, @
1783
+ struct timeval *@var {b }, struct timeval *@var {result })
1784
+
1785
+ Subtracts @var {b } from @var {a } and stores the result in @var {result }.
1786
+
1787
+ @end deftypefn
1788
+
1731
1789
@c tmpnam.c:3
1732
1790
@deftypefn Supplemental char* tmpnam (char * @var {s })
1733
1791
@@ -1829,7 +1887,7 @@ does the return value. The third argument is unused in @libib{}.
1829
1887
1830
1888
@end deftypefn
1831
1889
1832
- @c argv.c:306
1890
+ @c argv.c:286
1833
1891
@deftypefn Extension int writeargv (const char ** @var {argv }, FILE * @var {file })
1834
1892
1835
1893
Write each member of ARGV, handling all necessary quoting, to the file
0 commit comments