/*! \file nrrd.c * * \author John Reppy * * Common utility code for dealing with nrrd files. */ /* * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ #include "Diderot/diderot.h" #include Nrrd *Diderot_LoadNrrdFile (WorldPrefix_t *wrld, const char *filename) { /* create a nrrd; at this point this is just an empty container */ Nrrd *nin = nrrdNew(); /* read in the nrrd from file */ if (nrrdLoad(nin, filename, NULL) != 0) { char *msg = biffGetDone(NRRD); biffMsgAdd(wrld->errors, msg); FREE (msg); return 0; } return nin; }
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: biffMsgAdd(wrld->errors, msg); FREE (msg); return 0; } return nin; }