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