summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/regex/main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* userspace: remove vestigial '?' cases from top-level getopt(3) loopscheloha2022-12-041-2/+1
| | | | | | | | | | | | | getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
* no need to declare "extern optarg" and "extern optind"schwarze2020-02-141-3/+1
| | | | | | when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
* Fix usage() output and getopt sortingguenther2016-07-131-6/+6
|
* Fix an oversight that caused the test program to segfault:schwarze2016-05-261-2/+2
| | | | Don't try to calculate strlen(NULL).
* support for testing REG_STARTEND together with REG_NOTBOLschwarze2016-05-261-1/+4
|
* fix format strings, sizeof() does not return an intotto2007-09-121-5/+5
|
* use strcspn to properly overwrite '\n' in fgets returned bufferchl2007-09-091-2/+2
| | | | ok moritz@ gilles@
* kill bad functions; some sort of ok from marc who is trying to confuse mederaadt2004-02-281-3/+3
|
* various cleanups; david says results are samederaadt2003-07-311-14/+15
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-2/+2
|
* -Wall madness.millert1996-12-211-3/+6
|
* initial import of NetBSD treederaadt1995-10-181-0/+512