About 11,900,000 results
Open links in new tab
  1. Why your errno value isn't printing in GDB—and what to do ...

    Jun 5, 2024 · Printing the value of errno when debugging with GDB should be easy, but sometimes it doesn't work. Learn why this can happen and what you can do about it.

  2. c - Why can't errno's value be printed? - Stack Overflow

    15 The errno variable is kind of an odd duck. Because most runtime libraries these days support threads, there can't be just one errno variable. If there were, then two threads could do things …

  3. Why your errno value isn't printing in GDB—and what to do ...

    Jun 5, 2024 · This article explains why printing errno might not work and what to do when it doesn't.This article will focus on systems with runtime environments which use the GNU C …

  4. How to use errno in C++? - GeeksforGeeks

    Jul 23, 2025 · It contains error codes so if a call to a function fails somehow then the errno is set to a value that corresponds to the error. errno is defined in the header file <cerrno> in C++.

  5. errno - cppreference.com

    Oct 20, 2019 · errno is a preprocessor macro (but see note below) that expands to a thread-local(since C11) modifiable lvalue of type int. Several standard library functions indicate errors …

  6. C Error Handling: errno, perror (), strerror () - w3resource

    Sep 17, 2024 · Learn error handling in C using errno, perror(), and strerror() with practical examples. Understand how to capture and handle errors in C programming effectively.

  7. C Error Handling: Using errno and perror () - CodeLucky

    Sep 6, 2024 · Learn how to effectively manage errors in C programming by utilizing errno and perror(). This guide provides clear examples and best practices for robust code.

  8. How to Print the Symbolic Name of errno in C: Using ...

    Dec 7, 2025 · This blog explores two methods to retrieve the symbolic name of `errno` in C: the GNU-specific `strerrorname_np ()` function and the portable `errnoname` library.