![]() |
d060701
TROST
devNote |
0.50 2006-08-31 17:28 -0700 |
- The latest getpwd.h Description: <http://TROSTing.org/2006/07/d060701e.htm>. Consult that page for the latest header-file version and its download.
- This getpwd00.h (0.50 alpha) Description: <http://TROSTing.org/2006/07/d060701j.htm>. Consult that page for current status and any important notices. This version specifies additional information about the contracted behavior that applies to all implementations based on this header.
- Previous (0.4 alpha) version: <http://TROSTing.org/2006/07/d060701f.htm>. Obsolete initial version with function prototype only.
This version of getpwd00.h reflects the invariant behavior of the getpwd API Reference (0.50 alpha). The Zip package includes demonstration that the header is usable in both applications of getpwd and in implementations for getpwd.
1. Improved Trial Header
2. Package Download
3. Package Usage
4. Design Notes
The header file is tied to the corresponding API Reference specification. The current text is as follows:
/* getpwd00.h 0.50 alpha ISO 8859-1 encoding dh:2006-08-31 * * Obtain Password Entry Directly from Console (version 0.50 alpha) * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * * This is an alpha-test version of a C/C++ Language header of a custom * user function. The interface contract that this header represents is * available at http://TROSTing.org/dev/2006/07/d060701i.htm * * Copyright © 2006, NuovoDoc <http://NuovoDoc.com> * * Attribution: * Hamilton, Dennis E. getpwd00.h 0.50 alpha. C Language header * for trial getpwd00-version implementations, 2006-08-31. * Latest version available in package d060701j.zip at * http://TROSTing.org/dev/2006/07/d060701j.htm * * This work is licensed under the Creative Commons Attribution * License. To view a copy of this license, visit web site * http://creativecommons.org/licenses/by/2.5/ or send a letter * to Creative Commons, 559 Nathan Abbott Way, Stanford, * California 94305, USA. */ #ifndef GETPWD_H #define GETPWD_H #ifdef __cplusplus extern "C" { #endif #include <stddef.h> /* for implementation of size_t. */ int getpwd00(char buffer[ ], size_t maxpwd, size_t maxfield); #define getpwdMAX_MAXPWD (63) /* Limit buffers to a reasonable ceiling above manual entries */ #define getpwdMAX_MAXFIELD (getpwdMAX_MAXPWD+8) /* Limit fields to a slight increase over the maximum buffer */ #ifdef __cplusplus } #endif #endif /* GETPWD_H */ /* * $Header: /MyProjects/getpwd/getpwd00.h 4 06-08-31 17:04 Orcmid $ * * *** end of getpwd00.h *** */
A Zip archive with the header and a simple test program is available:
- The Manifest for the Zip Archive: 5,013 byte file d060701f.txt version 0.06 dated 2006-07-30-00:40. Read this file first to determine whether it is useful to download the Zip file.
- The Zip Archive: 4,301 byte file d060701f.zip version 0.06 dated 2006-07-30-00:41.
![]() |
created 2006-07-29-16:08 -0700 (pdt) by
orcmid |