int cdds_scanf(alias, fmt, ...);
[ Description | Arguments | Details | Output | Examples ]
"fmt" is an ANSI C standard format string for the stdio scanf function. It converts optional arguments "..." following the rules of the ANSI C standard for scanf.
Optional arguments, "...", are program variables that are set by cdds_scanf if they are present in the "scan" dictionaries. These variables should be passed by address.
Dictionaries may contain alias: definitions. They define alternate names for "older" definitions. alias: definitions are denoted by a special prefix, "alias:defn_name" or "$defn_name". The value of an alias: definition is a list of alternate names. For example:
out_data= /very/long/path/name/file
name= value...
alias:data= out_data
foo= hidden definition...
name= value...
$foo=
When cdds_scanf finds an alias: definition for
alias the search list is modified and processing continues.
The values of the alias: definition replace the one
name matched in the original alias list.
int i, j, n;
float alpha, gamma[100], f;
const char s[100];
alpha = 3.14;
j = cdds_scanf("alpha", "%f", &alpha);
j = cdds_scanf("beta", "%s %i %f", s, &i, &f);
/* retrieve list of float values */
j = cdds_scanf("gamma", "");
for(n = 0; 1 == cdds_scanf("", "%f", gamma + n); n++);
cdds_dict Select DDS dictionary and mode
cddx_dict Select DDS dictionary and mode
cdds_scank Retrieve a definition