Modify pointer type in example to match options from epicsTypes.h

This commit is contained in:
Michael Skoufis
2022-09-14 18:22:39 -07:00
committed by Michael Davidsaver
parent adb0c898a6
commit 7ccc3ab82d

View File

@@ -2353,10 +2353,12 @@ value, you would either delete the NOA specification, or specify it as "1".
The associated subroutine code that uses the A field might look like this:
static long my_asub_routine(aSubRecord *prec) {
long i, *a;
long i;
epicsInt32 *a;
double sum=0;
...
a = (long *)prec->a;
a = (epicsInt32 *)prec->a;
for (i=0; i<prec->noa; i++) {
sum += a[i];
}