summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
* Mechanically kill hard sentence breaks.ru2004-07-022-3/+5
|
* Markup, grammar, and spelling fixes.ru2004-06-301-1/+1
|
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-072-4/+12
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Translate from GNU C to ISO C.des2004-01-144-4/+4
|
* Add and document ffsl(), fls() and flsl().des2004-01-136-10/+199
|
* Brucification: Don't initialize in declaration, make sure extra linesjkh2003-12-182-2/+5
| | | | follow declaration section.
* Do comparison using appropriate casting first, as per SUSv3 (search for firstjkh2003-12-172-2/+4
| | | | [last] character, not int).
* Pass NULL instead of a pointer to a zeroed mbstate_t object.tjr2003-11-052-10/+4
|
* Pacify gcc about casting pointers to integers (for the lowest few bits).peter2003-10-261-6/+8
|
* mdoc(7): Use the new feature of the .In macro.ru2003-09-086-12/+12
|
* Move a sentence about the terminating \0 from the RETURN VALUES sectionsimon2003-09-042-14/+14
| | | | | | | | (where it didn't really belong), to the DESCRIPTION section. English advice: ceri Requested by: das MFC after: 4 weeks
* * Merge index(3) and rindex(3) to index(3) since the two functions aresimon2003-07-285-216/+61
| | | | | | | | | | | | | almost identical. * Merge strchr(3) and strrchr(3) to strchr(3) since the two functions are almost identical. * Make the wording of index(3) and strchr(3) more similar. * mdoc(7) cleanup. Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself PR: docs/32054 Reviewed by: ru Approved by: ceri (mentor)
* o strmode(3) returns void not 0.maxim2003-07-011-5/+0
| | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-013-13/+5
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-04-293-5/+13
| | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy
* MFp4: Make `spanp' const.tjr2003-03-121-3/+4
|
* Optimize errstr() by reducing the number of times it walks a string.mike2003-01-031-9/+7
| | | | | | | | As a side effect, it makes the code easier to read and requires less pointer arithmetic. Test by: strerror regression test Submitted by: Tim Kientzle <kientzle@acm.org>
* Stylistic changes:mike2002-12-201-11/+14
| | | | | | | | | | | o Fix an English error (comma splice) and poorly worded sentence. o Fix KNF ordering of variables (pointers come before arithmetic types). o Restore hand-optimization of sizeof()-1, instead of strlen(). o Remove unneeded local variables in strerror_r(). Test by: strerror regression test Requested by: bde Reviewed by: bde
* Add back the Standards section claiming conformance to 1003.1-2001 andtjr2002-12-191-10/+13
| | | | C99 now that all known standards-related bugs have been fixed.
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+1
|
* Rearrange strerror() so that its itoa procedure can be used withmike2002-12-182-86/+45
| | | | | | | | | | | | | | | strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.ru2002-12-183-4/+4
|
* mdoc(7) police: "The .Fn function".ru2002-12-183-0/+5
|
* mdoc(7) police: tiny nits.ru2002-12-093-8/+11
| | | | Approved by: re
* mdoc(7) police: formatting nits.ru2002-11-292-2/+4
| | | | Approved by: re
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-6/+4
|
* Replace wcsstr() with an implementation based on strstr(), which is fartjr2002-10-241-38/+32
| | | | | | more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary.
* Restore Berkeley SCCS id.tjr2002-10-241-1/+5
|
* Remove the Standards section again until we get these functions sortedtjr2002-10-241-8/+0
| | | | out. This will probably have to wait until after 5.0-R.
* Fix the NetBSD RCS id's on these files; somehow they were initiallytjr2002-10-232-2/+2
| | | | committed with the tags unexpanded.
* Reimplement more efficiently, using a single forward scan (like strrchr(3))tjr2002-10-231-22/+12
| | | | | instead of scanning forwards to find the end of the string then scanning backwards to find the character.
* Reimplement, handling the case where c == L'\0' correctly and fixingtjr2002-10-231-21/+7
| | | | some style(9) bugs.
* Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.tjr2002-10-231-1/+17
| | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer.
* Translate to English.des2002-10-231-13/+18
|
* Replace this wcsncpy() implementation with one based on strncpy.c to fixtjr2002-10-231-26/+32
| | | | | | | two major bugs: - off-by-one overflow when the length of the source string exceeds or equals the destination buffer size. - old version was not padding the destination buffer with null wide chars
* C89 does not specifiy strsep(), so our strsep() implementation cannottjr2002-10-191-1/+0
| | | | | | conform to it. Obtained from: OpenBSD
* Add cross-references to the wide character counterparts of these functions.tjr2002-10-153-3/+6
|
* Remove stray comma at the end of the See Also list.tjr2002-10-151-1/+1
|
* Fix another spelling mistake.robert2002-10-101-1/+1
|
* Correct a spelling mistake.robert2002-10-101-1/+1
|
* Add a placeholder implementation of wcscoll() and wcsxfrm() which givestjr2002-10-045-4/+454
| | | | | locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets.
* Add stpcpy(3).obrien2002-10-034-2/+73
|
* Add an example showing how to use wcstok(). Fix ordering of See Also section.tjr2002-10-021-2/+15
|
* Simplify by removing unneeded local variables and explicit null termination.tjr2002-09-261-12/+8
|
* Simplify by removing useless local variables and explicit null termination.tjr2002-09-261-9/+5
|
* Remove unnecessary #include <assert.h>; it was used to bring in thetjr2002-09-2120-20/+0
| | | | _DIAGASSERT macro on NetBSD, but we don't need it.
* Replace a stray reference to strtok() with one to wcstok().tjr2002-09-081-1/+1
|
* Add an implementation of wcstok(), based on strtok_r().tjr2002-09-073-3/+213
|
* Sync prototypes with <wchar.h> with respect to the restrict qualifier.tjr2002-09-071-6/+6
|
* Add restrict qualifiers where C99 permits them. All of these already hadtjr2002-09-076-12/+12
| | | | restrict qualifiers on their prototypes in <wchar.h>.
OpenPOWER on IntegriCloud