Returns a portion of a the string **_s_**, specified by the **_from_** and **_to_** 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.
-
-
### RETURN VALUE
On success, a pointer to the string **dest** is returned, otherwise **NULL**.
+
### ERRORS
+
**strmid()** can fail with the following errors:
+
+
* ERANGE - the **_dest_** string does not have enough space.