1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

doc/api: replace format "%lx" by "%p" in examples

This commit is contained in:
Sébastien Helleu
2024-06-14 22:14:28 +02:00
parent 8923ecc7d8
commit d171c1682c
5 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -14374,7 +14374,7 @@ C пример:
[source,c]
----
weechat_printf (NULL, "показивач на додатак мог бафера: %lx",
weechat_printf (NULL, "показивач на додатак мог бафера: %p",
weechat_buffer_get_pointer (my_buffer, "plugin"));
----
@@ -14850,7 +14850,7 @@ C пример:
[source,c]
----
weechat_printf (NULL,
"прозор који приказује core бафер: %lx",
"прозор који приказује core бафер: %p",
weechat_window_search_with_buffer (weechat_buffer_search_main ()));
----
@@ -14983,7 +14983,7 @@ C пример:
[source,c]
----
weechat_printf (NULL,
"бафер који се приказује у текућем прозору: %lx",
"бафер који се приказује у текућем прозору: %p",
weechat_window_get_pointer (weechat_current_window (), "buffer"));
----
@@ -18759,7 +18759,7 @@ C пример:
----
struct t_hdata *hdata = weechat_hdata_get ("buffer");
struct t_gui_buffer *buffer = weechat_buffer_search_main ();
weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines"));
weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines"));
----
Скрипта (Python):