SHARE
TWEET

ok , global variable is condemned, singleton is despised, what's the alternative

a guest Feb 27th, 2012 25 Never
  1. typedef struct Pnmrdr_T *Pnmrdr_T;
  2.  
  3. struct Pnmrdr_T *Pnmrdr_new(FILE *);
  4. pixel Pnmrdr_get(Pnmrdr_T);
  5. void Pnmrdr_close(Pnmrdr_T);
  6. void Pnmrdr_free(Pnmrdr_T *rp); // frees memory and sets *rp = NULL
RAW Paste Data
Top