#include #include #include #include #include #include #include #include #include #include static long SUCCESS = 0; static long ERROR = -1; #undef DEBUG long subBpmInit(struct aSubRecord *asub_p) { if( asub_p == NULL) return ERROR; return SUCCESS; } /* Append string */ long subBpmString(struct aSubRecord *asub_p) { char tmp[60]; /* Change this to not be hard-coded */ if( asub_p == NULL) return SUCCESS; sprintf( tmp, "%s%s%s", (char *)asub_p->a, (char *)asub_p->b, (char *)asub_p->c ); strcpy( (char *)asub_p->vala, tmp ); #ifdef 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); #endif return SUCCESS; } epicsRegisterFunction(subBpmInit); epicsRegisterFunction(subBpmString);