Top "C99" questions

This tag is for questions regarding the International Standard ISO 9899:1999, aka "C99", with technical corrigenda, and for questions about code written in C99 (as opposed to K&R C, C89 or later C Standard revisions like the 2011 revision C11).

What is the default C -std standard version for the current GCC (especially on Ubuntu)?

When I ask to see the current version of cc I get this. $ cc --version cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 …

c ubuntu gcc c99 c11
What is the use of the `inline` keyword in C?

I read several questions in stackoverflow about inline in C but still am not clear about it. static inline void …

c inline c99
Passing a multidimensional variable length array to a function

There are tons of similar questions, but still I could not find any answer relevant for the feature of variable …

c arrays c99
Create statically-linked binary that uses getaddrinfo?

I have included the header netdb.h, where getaddrinfo is included, but gcc issues this warning: warning: Using 'getaddrinfo' in …

c gcc posix c99 static-linking
Is "inline" without "static" or "extern" ever useful in C99?

When I try to build this code inline void f() {} int main() { f(); } using the command line gcc -std=c99 …

c inline c99
Anonymous union within struct not in c99?

here is very simplified code of problem I have: enum node_type { t_int, t_double }; struct int_node { int …

c gcc struct c99 unions
What's the proper use of printf to display pointers padded with 0s

In C, I'd like to use printf to display pointers, and so that they line up properly, I'd like to …

c pointers printf c99
How to use make and compile as C99?

I'm trying to compile a linux kernel module using a Makefile: obj-m += main.o all: make -C /lib/modules/$(shell …

linux makefile c99 c89 kbuild
How do you configure GCC in Eclipse to use C99?

I'm working on a small C project in Eclipse; I just installed Eclipse from the Ubuntu Software Center and added …

eclipse gcc c99
What does dot (.) mean in a struct initializer?

static struct fuse_oprations hello_oper = { .getattr = hello_getattr, .readdir = hello_readdir, .open = hello_open, .read = hello_read, }; I don't …

c c99 designated-initializer