8
votes
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema:
```sql
CREATE TABLE article_to_warehouse (
article_id INTEGER
, warehouse_id INTEGER
)
;
```
How do I add a `UNIQUE` constraint?
The answer is probably “No”, but still. Is there a way to get a “private structure” in plain C? The closest I've got is this:
metres.h
:metres.c
:main.c
:This works, but forces API users to use heap allocation at all times, because otherwise they get “incomplete type” errors when trying to use automatic allocation for
metres_t
.(Inspired by this question on Russian StackOverflow.)