10.11.2012 Views

Reference Manual of the nadc-tools API and Libraries - SRON

Reference Manual of the nadc-tools API and Libraries - SRON

Reference Manual of the nadc-tools API and Libraries - SRON

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.36 NADC USRINP<br />

Identifier NADC USRINP<br />

Author R.M. van Hees<br />

Language ANSI-C<br />

Purpose Decode a character string into an array with elements <strong>of</strong><br />

<strong>the</strong> requested data type<br />

Usage NADC USRINP( type, string, maxval, pntr, nrval );<br />

Input valid values are: UINT8 T, INT16 T, UINT16 T,<br />

INT32 T, UINT32 T, FLT32 T, FLT 64 T<br />

char *string character string<br />

int maxval maximum number <strong>of</strong> elements in <strong>the</strong> output array<br />

Output int *nrval actuel number <strong>of</strong> values found<br />

Returns nothing (check global error status)<br />

Comment The input-string has to contain values separated by ”,” or ”:”.<br />

The values in <strong>the</strong> output array are converted to requested type<br />

input: string = ”1,4,8”<br />

type = FLT32 T<br />

returns: pointer to 1.0 4.0 8.0<br />

nrval = 3<br />

input: string = ”.6:2:.4”<br />

type = FLT32 T or FLT64 T<br />

returns: pointer to 0.6 1.0 1.4 1.8<br />

nrval = 4<br />

2.37 NADC VERSION<br />

Identifier NADC VERSION<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose Returns <strong>the</strong> library version numbers through arguments.<br />

Usage NADCget Version( majnum, minnum, relnum, reldate );<br />

Input unsigned int majnum : major revision number<br />

unsigned int minnum : minor revision number<br />

unsigned int relnum : release revision number<br />

char reldate[] : release date<br />

Returns nothing<br />

Comment none<br />

2.38 NADC WR ASCII<br />

Identifier NADC WR ASCII<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose display keyword <strong>and</strong> values uniformly<br />

Comment contains CRE ASCII FILE, CAT ASCII FILE, <strong>nadc</strong> write header,<br />

<strong>nadc</strong> write xxx, <strong>nadc</strong> write arr xxx<br />

52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!