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

Leandro Lanzieri notifications at github.com
Mon Jul 29 09:40:26 CEST 2019


leandrolanzieri commented on this pull request.



> +    return 1;
+}
+
+ssize_t clif_add_param(clif_param_t *param, char *buf, size_t maxlen)
+{
+    assert(param && param->key);
+
+    param->key_len = strlen(param->key);
+    /* count param name size and separator ';' */
+    size_t req_space = param->key_len + 1;
+    size_t pos = 0;
+    int quoted = strcmp(param->key, LF_PARAM_SIZE) ? 1 : 0;
+
+    if (param->value) {
+        if (!param->value_len) {
+            param->value_len = strlen(param->value);

I added a note on the documentation of the function.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11189#discussion_r308091187
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/cd3e02db/attachment.htm>


More information about the notifications mailing list