# include # include "../lib/nicmos.h" /* T_PEDSUB -- Main entry/exit point. ** ** This module exists just to avoid an ungraceful exit() ** that might bomb IRAF out. ** ** ** ** Revision history: ** ---------------- ** H. Bushouse 03-May-1999 Initial Implementation. ** */ /* Global string for message output. */ char MsgText[SZ_OUTLINE]; # if defined(NATIVE_IRAF) # include IRAFTASK(pedsub) { # else int main(int argc, char **argv) { # endif int i; int n_pedsub (int, char **); MsgText[0] = '\0'; c_irafinit (argc, argv); # if defined(NATIVE_IRAF) i = n_pedsub (argc, argv); # else return (n_pedsub (argc, argv)); # endif }