diff options
author | jsing <> | 2014-08-27 14:59:44 +0000 |
---|---|---|
committer | jsing <> | 2014-08-27 14:59:44 +0000 |
commit | 1fbc8b7e3211e362b5507749d1c5b692dcb8c64f (patch) | |
tree | d84799ea674d39450c109ebc4c3cb39140e5201e /src/lib/libc/stdlib/reallocarray.c | |
parent | 10e31157bd2d409218ed09f4b52af2de773a8a0f (diff) | |
download | openbsd-1fbc8b7e3211e362b5507749d1c5b692dcb8c64f.tar.gz openbsd-1fbc8b7e3211e362b5507749d1c5b692dcb8c64f.tar.bz2 openbsd-1fbc8b7e3211e362b5507749d1c5b692dcb8c64f.zip |
Implement table-driven option parsing that allows an application to
specify what its valid options are and where it wants them to be stored.
This also allows for usage to be generated, almost for free, ensuring
that the options and usage are automatically kept in sync.
This will allow for a single option parsing implementation, rather than the
current one-hand-rolled-option-parsing-and-random-usage-implementation per
application.
As a starting point, port the openssl(1) rand application to the new option
parsing and usage (along with associated code clean up).
With input from doug@.
ok bcook@ doug@
Diffstat (limited to 'src/lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions