Blame
|
1 | % strmid(3) Version 1.0 | Library Functions Manual |
||||||
|
2 | *** |
||||||
|
3 | |||||||
|
4 | ## NAME |
||||||
|
5 | |||||||
|
6 | **strmid** — return part of a string. |
||||||
|
7 | |||||||
|
8 | ### LIBRARY |
||||||
|
9 | |||||||
|
10 | libmega C library (-lmega) |
||||||
|
11 | |||||||
|
12 | ### SYNOPSIS |
||||||
|
13 | |||||||
|
14 | ``` |
||||||
| 15 | #include <nonstd.h> |
|||||||
|
16 | |||||||
|
17 | char *strmid(char *dest, size_t max_len, const char *s, int from, int to); |
||||||
| 18 | ``` |
|||||||
|
19 | |||||||
|
20 | ### DESCRIPTION |
||||||
| 21 | *** |
|||||||
|
22 | |||||||
|
23 | 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. |
||||||
|
24 | |||||||
| 25 | ||||||||
| 26 | ||||||||
|
27 | ### RETURN VALUE |
||||||
|
28 | *** |
||||||
|
29 | |||||||
|
30 | On success, a pointer to the string **dest** is returned, otherwise **NULL**. |
||||||
|
31 | |||||||
| 32 | ||||||||
|
33 | ### NOTES |
||||||
|
34 | *** |
||||||
|
35 | |||||||
|
36 | None. |
||||||
|
37 | |||||||
|
38 | ### BUGS |
||||||
|
39 | |||||||
|
40 | See GitHub Issues: <https://github.com/znac049/mega-micros-sbc3/issues> |
||||||
|
41 | |||||||
| 42 | ### AUTHOR |
|||||||
| 43 | *** |
|||||||
| 44 | ||||||||
| 45 | Bob Green <bob@chippers.org.uk> |
|||||||
| 46 | ||||||||
|
47 | ### SEE ALSO |
||||||
| 48 | *** |
|||||||