1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

alias: add example in comment of function alias_replace_args

This commit is contained in:
Sébastien Helleu
2023-05-18 11:07:46 +02:00
parent e237f7488f
commit 8d838e89ee
+8
View File
@@ -209,6 +209,14 @@ alias_string_add_arguments (char **alias, int *length, char **argv, int start,
* $& all arguments, with double quotes escaped (" replaced by \")
* $~ last argument
*
* Example:
*
* Parameters:
* alias_args = "$2 $1 '$3-'"
* user_args = "abc def ghi jkl"
*
* Result = "def abc 'ghi jkl'"
*
* Note: result must be freed after use.
*/