#include #include #include #include #include #include #include #include #include #include #include #include static long SUCCESS = 0; static long ERROR = -1; #define ASUB_NARGS 21 long subBpmInit(struct aSubRecord *asub_p) { if( asub_p == NULL) return ERROR; return SUCCESS; } /* Append string */ long subBpmString(struct aSubRecord *asub_p) { char tmp[MAX_STRING_SIZE]; if( asub_p == NULL) return SUCCESS; short debug = (asub_p->tpro > 1) ? 1 : 0; sprintf( tmp, "%s%s%s", (char *)asub_p->a, (char *)asub_p->b, (char *)asub_p->c ); strcpy( (char *)asub_p->vala, tmp ); if (debug) { printf("%s: build %s %s from %s, %s, %s\n", asub_p->name, tmp, (char *)asub_p->vala, (char *)asub_p->a, (char *)asub_p->b, (char *)asub_p->c); } return SUCCESS; } epicsRegisterFunction(subBpmInit); epicsRegisterFunction(subBpmString);