/* ** ** INCLUDE FILES ** */ #include #include #include #include #include #include #include #include #include #include #include #define __NEW_STARLET 1 /* ** ** ADC DEFINITONS ** */ #include "adcdef.h" #include "macros.h" char msg[] = "Welcome\n\n\nThis is the official testebed and development hub for uHub."; $DESCRIPTOR(cfenc_dsc, "ADC_ENC"); $DESCRIPTOR(cfdec_dsc, "ADC_DEC"); $DESCRIPTOR(ncslib_dsc, "$1$DGA712:[LAISHEV.WORK.DCPP]ADC_NCS.NLB"); void main (void) { int status,cfenc = 0, cfdec = 0; char buf [ 1024 ]; struct dsc$descriptor inp_dsc,out_dsc; INIT_SDESC(inp_dsc,sizeof(msg)-1,msg); INIT_SDESC(out_dsc,sizeof(buf),buf); status = ncs$get_cf(&cfenc,&cfenc_dsc,&ncslib_dsc); status = ncs$get_cf(&cfdec,&cfdec_dsc,&ncslib_dsc); status = ncs$convert(&cfenc,&inp_dsc,&out_dsc,&out_dsc.dsc$w_length); lib$put_output(&out_dsc); status = ncs$convert(&cfdec,&out_dsc,&inp_dsc,&inp_dsc.dsc$w_length); lib$put_output(&inp_dsc); status = ncs$end_cf(&cfenc); status = ncs$end_cf(&cfdec); }