Top "C" questions

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

difference between <stdlib.h> and <malloc.h>

When I use malloc in a C program, I get a warning: warning: incompatible implicit declaration of built-in function 'malloc' […

c gcc malloc
rails install pg - Can't find the 'libpq-fe.h header

$ sudo bundle install Result Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Using rake (0.9.2.2) …

c ruby-on-rails sqlite ruby-on-rails-3 pg
Checking available stack size in C

I'm using MinGW with GCC 3.4.5 (mingw-special vista r3). My C application uses a lot of stack so I was wondering …

c stack mingw
Cumulative Normal Distribution Function in C/C++

I was wondering if there were statistics functions built into math libraries that are part of the standard C++ libraries …

c++ c math statistics distribution
Are default enum values in C the same for all compilers?

When declaring an enum as shown below, do all C compilers set the default values as x=0, y=1, and z=2 …

c enums
How do I implement a circular list (ring buffer) in C?

How do I implement a circular list that overwrites the oldest entry when it's full? For a little background, I …

c queue
Why is a while loop needed around pthread wait conditions?

I'm learning pthread and wait conditions. As far as I can tell a typical waiting thread is like this: pthread_…

c multithreading pthreads
"#include" a text file in a C program as a char[]

Is there a way to include an entire text file as a string in a C program at compile-time? something …

c include c-preprocessor
How to call C from Swift?

Is there a way to call C routines from Swift? A lot of iOS / Apple libraries are C only and …

c swift
How to understand Locality Sensitive Hashing?

I noticed that LSH seems a good way to find similar items with high-dimension properties. After reading the paper http://…

c machine-learning hashmap nearest-neighbor locality-sensitive-hash