Verwendung von inline


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 C

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki