[riot-notifications] [RIOT-OS/RIOT] sys: Add Link Format module (#11189)

Leandro Lanzieri notifications at github.com
Mon Apr 1 09:49:57 CEST 2019

leandrolanzieri commented on this pull request.

> + */
+ssize_t clif_add_link_separator(char *buf, size_t maxlen);
+ * @brief   Looks for a link in a given string @p input. If multiple link are
+ *          present in the string it will return the first one.
+ *
+ * @param[in] input         string where to look for a link
+ * @param[in] input_len     length of @p input
+ * @param[out] output       if a link is found this will point to the beginning
+ *                          of it
+ *
+ * @return length of the link if found
+ * @return CLIF_NOT_FOUND if no valid link is found
+ */
+ssize_t clif_get_link(const char *input, size_t input_len,

It is being used in `clif_decode_links` to find the link separator and know the size of each one. When `clif_get_param` if called the string should be limited to one link, that's why this function exists.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190401/34816ef1/attachment-0001.html>

More information about the notifications mailing list