C/C++
c_header.txt
Associated article: Decoupling C Header Files
Tags: C/C++ Open Source
Published source code accompanying the article by R. Samuel Klatchko in which he examines unnecessary coupling. One issue with the common C compilation model is that it can easily lead to unnecessary coupling between files. But decoupling those files isn't necessarily easy either.
Decoupling C Header Files
by R. Samuel Klatchko
Listing One: (a) ltds.h (b) smtp.h
(a)
typedef struct ltds_t
{
...
} ltds_t;
(b)
#include <ltds.h>
int smtp_send_str(const char* msg, /* other arguments elided */);
int ...


