main.c
include "module.h"

main()
{
    a = getFSize();
    b = getCheckSum();   // b = cs;
}


module.c
include "module.h"

static int cs;

int getFSize()
{
    cs = ...;
    return filesize;
}


module.h
extern static int cs;

int getFSize();

inline int getCheckSum()
{
    return cs;
};





Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki