We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [c99]

C99 is the latest standard of the general purpose C programming language. It was adopted as an ANSI standard in the year 2000.

Filter by
Sorted by
Tagged with
3
votes
1answer
242 views

How to make my educational dynamic array C library less verbose to use?

I really like to make tools prior to starting some assignment, so for the C programming assignments I have prepared dynamic array library. We are restrained to only using C99 standard. Note that all ...
6
votes
5answers
2k views

Definition of portable C

I have been having a huge and heated argument with someone on a slack group - the debate is this : My argument Portable code is that which compiles with various compilers and runs exactly the same ...
2
votes
1answer
6k views

Memory/cache performance in working with arrays in C

I've been toying with some array examples in C. I want to understand more about memory concepts, alignment, and cache. Especially on large arrays on heap. Sometimes I work on large images (extremely ...
3
votes
2answers
941 views

Complex iterators in C

note: this was originally asked on SO. Part of my current project involves iterating over sequences that don't necessarily exist. For example, I have something similar to a relational database in ...
2
votes
2answers
268 views

Function naming design in a C Library

I'm writing a C (c99) library that operates on strings. I'm having a design problem writing functions that will perform in different modes. For example; the Find function can search for: the first, ...
5
votes
4answers
15k views

Static vs. non-static? (with non-OOP functions)

Although this question has come up before, mine is different because it is not supposed to cover anything OOP but only plain (ANSI) C. Especially in open-source software, I usually encounter a ...
1
vote
1answer
74 views

Why are zero length VLAs allowed in C99, but not in C11 any more?

In the comments to this former question, there was a discussion if the C standard allows variable length arrays (VLAs) of length 0 or not. As it turns out, the C99 standard states: In 6.7.5.2 Array ...
8
votes
4answers
565 views

What situations are appropriate for C# to C interop?

Given that C# has the unsafe keyword, are there situations in which it would still be beneficial to interoperate with C libraries? I could see the need for very fast number crunching, graphical ...
10
votes
3answers
5k views

Does C99 make the K&R book outdated? If so what to recomend in its place? [closed]

C99 has been with us for a while now. It introduces a lot of features that are not in K&Rs The C Programming Language. None of them are particularly radical. However, even small features like ...
6
votes
4answers
3k views

Which version of C should I learn? [closed]

It looks like K&R "C Programming Language (2nd Edition)" covers ANSI C, but another book that I'm starting (Stephen G. Kochan "Programming in C") says that it uses C99. I'm coming from a C#/...
5
votes
3answers
1k views

Should one avoid or be careful with C99 features in C code?

Some seem to say that one should avoid C99 features in C code as compilers don't really support those features. C99 is a standard from 1999, shouldn't these features be quite widespread now? Should ...