c language

  1. F

    C/C++ ncurses blank lines (newline) not being displayed on terminal/console window

    I'm following a ncurses tutorial from here: https://www.viget.com/articles/game-programming-in-c-with-the-ncurses-library/ It shows how to make a simple bouncing character that goes left to right on the terminal window. Here is the code, I modified it slightly: #include <ncurses.h> #include...
  2. V

    C/C++ cannot find -lasan when doing -fsanitize=address using GCC/g++/etc

    Issue: Using any compiler to compile any C code with "-fsanitize=address" results in the following error: /usr/local/bin/ld: cannot find -lasan collect2: error: ld returned 1 exit statu I get this error even when I try gcc main.c -fsanitize=address on int main() { return 0; } using...
  3. M

    C/C++ Increase named pipe size

    Hi, What is the preferred way of increasing a named pipe (fifo) size in FreeBSD. I just found the fcntl with F_SETPIPE_SZ option borrowed from Linux and I'm not sure whether it is the right approach as I can't make it compile even if I'm using: #define _GNU_SOURCE Thanks a lot!
  4. Tu_Vieja

    C/C++ Studying about compilers.

    Hi guys! Recently I got interested about compilers, how they works, how it analyzes the source code, how they translate code, how how how. The good thing for me is that I don't want to create a full compiler from scratch (yet), but instead I want to understand how the different parts works and...
  5. David John

    Solved Clang warnings for an invalid casting?

    I am trying to compile a simple code (see below) with gcc and clang. the gcc generates a warning indicating an incomparable casting (great!). However, clang didn't generate any warnings! I have passed the same arguments for both: cc -Wall -Wextra tmp3.c gcc -Wall -Wextra tmp3.c Is there an...
  6. E

    Bugs in FreeBSD

    Developers of a static analyzer decided to recheck the FreeBSD project and to show that even in such serious and qualitative projects PVS-Studio easily finds errors. This was the topic of their blog post - https://www.viva64.com/en/b/0496/. Although this project is regularly checked by Coverity...
Top