Commit 62c66e

2026-08-24 17:16:48 Bob Green: -/-
programming/man pages.md ..
@@ 1,67 1,46 @@
- % HELLO(1) Version 1.0 | Frivolous "Hello World" Documentation
+ % strmid(3) Version 1.0 | Library Functions Manual
## NAME
***
- **hello** — prints Hello, World!
+ **strmid** — return part of a string.
- ### SYNOPSIS
+ ### LIBRARY
***
- | **hello** \[**-o**|**--out** _file_] \[_dedication_]
- | **hello** \[**-h**|**--help**|**-v**|**--version**]
+ libmega C library (-lmega)
- ### DESCRIPTION
+ ### SYNOPSIS
***
- Prints "Hello, _dedication_!" to the terminal. If no dedication is
- given, uses the default dedication. The default dedication is chosen by
- the following sequence:
-
- 1. Using the environment variable *DEFAULT_HELLO_DEDICATION*
- 2. Using the per-user configuration file, *~/.hellorc*
- 3. Using the system-wide configuration file, */etc/hello.conf*
- 4. Finally, using "world".
-
- #### Options
-
- -h, --help
-
- : Prints brief usage information.
+ ```
+ #include <nonstd.h>
- -o, --output
+ char *strmid(char *dest, size_t max_len, const char *s, int from, int to);
+ ```
- : Outputs the greeting to the given filename.
+ ### DESCRIPTION
+ ***
- The file must be an **open(2)**able and **write(2)**able file.
+ Returns a portion of a the string **s**, specified by the **offset** and **length** parameters. The string porttion is copied into the string **dest**, up to a limit of **max_len** characters. If there is not enough room, **NULL** is returned.
- -v, --version
- : Prints the current version number.
- ### FILES
+ ### RETURN VALUE
***
- *~/.hellorc*
-
- : Per-user default dedication file.
+ On success, a pointer to the string **dest** is returned, otherwise **NULL**.
- */etc/hello.conf*
- : Global default dedication file.
-
- ### ENVIRONMENT
+ ### NOTES
***
- **DEFAULT_HELLO_DEDICATION**
-
- : The default dedication if none is given. Has the highest precedence
- if a dedication is not supplied on the command line.
+ None.
### BUGS
***
- See GitHub Issues: <https://github.com/[owner]/[repo]/issues>
+ See GitHub Issues: <https://github.com/znac049/mega-micros-sbc3/issues>
### AUTHOR
***
@@ 70,5 49,3 @@
### SEE ALSO
***
-
- **hi(1)**, **hello(3)**, **hello.conf(5)**
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9