#include "fwBase.h" #include "fwImage.h" #include int main(int argc, char** argv) { Fw8u* im; int step; int width,height; if ( fwStaticInit() < 0 ) { fprintf( stderr, "Can't init framewave. Exiting.\n"); return 1; } width=256; height=256; im = fwiMalloc_8u_C1( width, height, &step); if (im==NULL) { fprintf(stderr,"ERROR: could not allocate image %dx%d\n",width,height); return 1; } fwiFree(im); return 0; }