ping_get_error(3)
π ping_get_error β bestie edition π
okay so this is a page from the liboping manual, section 3 (that's the library-calls girlies β¨), and today's main character is ping_get_error. she's tiny. she's simple. she ate. let's go π«Ά
β¨ NAME β¨
ping_get_error β return the last error message π
πΈ SYNOPSIS πΈ
like, the whole vibe in four lines, no cap:
#include <oping.h>
const char *ping_get_error (pingobj_t *obj);
π¦ DESCRIPTION π¦
so ping_get_error hands you back an error message, and that message is telling you about the last error that got encountered. that's it. that's the function. she's giving "receipts for what just went wrong" ππ
β οΈ the tea: this method is not thread safe whatsoever. not "mostly fine", not "fine if you squint" β whatsoever. if you're out here calling this from multiple threads at once, that's not it, bestie ππͺ
π RETURN VALUE π
you get back a "const" string, and that string is the last error. and if nothing has gone wrong yet? you get an empty string β no error, no drama, just vibes πβ¨
π SEE ALSO π
π AUTHOR π
liboping is written by Florian "octo" Forster <ff at octo.it>. her homepage lives at <http://noping.cc/> β go say hi π π«Ά
Copyright (c) 2006-2017 by Florian "octo" Forster.
and that's the whole page, periodt π
version 1.10.0, dated 2017-05-11, and yeah this was ping_get_error(3) the whole time π stay safe, stay const, don't share your error buffer across threads π§β¨
π¦ where this page comes from
- alpine 3.24: liboping-doc 1.10.0-r2 Β· LGPL-2.0-or-later
- epel 10: liboping-devel 1.10.0-33.el10_0 Β· GPL-2.0-only
- epel 9: liboping-devel 1.10.0-19.el9 Β· GPLv2
- fedora 43: liboping-devel 1.10.0-35.fc43 Β· GPL-2.0-only
- fedora 43: liboping-devel 1.10.0-35.fc43 Β· GPL-2.0-only
- fedora 44: liboping-devel 1.10.0-36.fc44 Β· GPL-2.0-only
- fedora 44: liboping-devel 1.10.0-36.fc44 Β· GPL-2.0-only
- nixos 26.05: liboping 1.10.0
- nixpkgs unstable: liboping 1.10.0
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms