** Pastebin PRO Accounts Easter Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!

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

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.20 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. typedef struct Pnmrdr_T *Pnmrdr_T;
  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
clone this paste RAW Paste Data