Guardian C Library Calls Reference Manual

Reference to Library Calls
Guardian TNS C Library Calls Reference Manual128833 3-173
sscanf
Example
This example reads input from a string, converts it to a long float (double) value, and
stores it in a variable of type double:
#include <stdioh>
int status;
double r, x;
char sp[25];
/* ... */
status = sscanf(sp, "%f", &x);
r = sqrt(x);
printf ("The square root of %f is %f", x, r);