#ident "@(#) FlowIntoDef.c 1.2 05/08/19 SwRI" #include "pidf_local.h" SDDAS_INT FlowIntoDefined (SDDAS_ULONG key, const SDDAS_CHAR *exten, SDDAS_CHAR *flow_into) { SDDAS_CHAR flow_val; SDDAS_INT error_code; /* For Backwards compatibility, if this field is not defined within the current */ /* PIDF file, set to it's default value of 'Y'. */ if ((error_code = ReadNewPidf (key, exten, NOTUSED, NOTUSED, NOTUSED, FLOWINTO, (void *) &flow_val)) != ALL_OKAY) *flow_into = 'Y'; /* Make sure legitimate value. Anything other 'N' or 'Y' defaults to 'Y' */ else if (flow_val != 'N' && flow_val != 'Y' && flow_val != 'n' && flow_val != 'y') *flow_into = 'Y'; else *flow_into = flow_val; return (1); }