ping\_get\_error(3) liboping ping\_get\_error(3)

# [NAME](#NAME)

ping\_get\_error - Return the last error message

# [SYNOPSIS](#SYNOPSIS)

```
  #include <oping.h>
  const char *ping_get_error (pingobj_t *obj);
```

# [DESCRIPTION](#DESCRIPTION)

The **ping\_get\_error** method returns an error message indicating the last error encountered. **This method is not thread safe whatsoever.**

# [RETURN VALUE](#RETURN_VALUE)

A "const" string representing the last error or an empty string if no error was encountered yet.

# [SEE ALSO](#SEE_ALSO)

[**liboping**(3)](/man/os/liboping/liboping.3)

# [AUTHOR](#AUTHOR)

liboping is written by Florian "octo" Forster &lt;ff at octo.it&gt;. Its homepage can be found at &lt;http://noping.cc/&gt;.

Copyright (c) 2006-2017 by Florian "octo" Forster.

2026-10-10 1.10.0

---

Document: ping_get_error(3) from liboping 1.10.0-r7 (Chainguard OS)
Source: https://github.com/octo/liboping.git
