Top "C" questions

C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.

What does #pragma once mean in C?

Possible Duplicate: #pragma - help understanding I saw the pragma many times,but always confused, anyone knows what it does?…

c pragma
$display in Verilog and printf in C

As you know in Verilog has $display,$strobe and $monitor those used to display text on the screen. And in …

c verilog
Which of sprintf/snprintf is more secure?

I wish to know which of these two options is the more secure one to use: #define MAXLEN 255 char buff[…

c security unix printf secure-coding
Check glibc version for a particular gcc compiler

I have two gcc compilers installed on my system, one is gcc 4.1.2 (default) and the other is gcc 4.4.4. How can …

c gcc glibc
What's the difference between hard and soft floating point numbers?

When I compile C code with my cross toolchain, the linker prints pages of warnings saying that my executable uses …

c linux floating-point arm libc
C faster way to check if a directory exists

I'm using opendir function to check if a directory exists. The problem is that I'm using it on a massive …

c performance mkdir opendir
Implementing the ls -al command in C

As a part of an assignment from one of my classes, I have to write a program in C to …

c linux file ls stat
Fix for dereferencing type-punned pointer will break strict-aliasing

I'm trying to fix two warnings when compiling a specific program using GCC. The warnings are: warning: dereferencing type-punned pointer …

c strict-aliasing type-punning
converting int to uint8_t

is it a correct way to convert an int value to uint8_t: int x = 3; uint8_t y = (uint8_t) …

c int type-conversion uint8t
How do you check if a directory exists on Windows in C?

Question In a Windows C application I want to validate a parameter passed into a function to ensure that the …

c windows winapi