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).

Which functions in the C standard library commonly encourage bad practice?

This is inspired by this question and the comments on one particular answer in that I learnt that strncpy is …

c security c99 standard-library
Why weren't new (bit width specific) printf() format option strings adoped as part of C99?

While researching how to do cross-platform printf() format strings in C (that is, taking into account the number of bits …

c types printf c99 format-specifiers
what's the equivalent of atoi or strtoul for uint32_t and other stdint types?

i'm looking for the standard functions to convert a string to an stdint.h integer, like int i = atoi("123"); unsigned …

c type-conversion c99 stdint
C99 printf formatters vs C++11 user-defined-literals

This code: #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <stdio.h> #include <stdlib.h&…

c++ c++11 printf c99 code-translation
Is there a #define for C99?

I want to do something in C99 one way, otherwise to perform it another way. What is the #define to …

c macros c99
How to implement memmove in standard C without an intermediate copy?

From the man page on my system: void *memmove(void *dst, const void *src, size_t len); DESCRIPTION The memmove() …

c c99 undefined-behavior unspecified-behavior