#include <stdio.h>
#include <string.h>

void test(char *str) {
	int len;
	float ignore;
	int ret = sscanf(str, "%f %n", &ignore, &len);
	printf("'%s'\t\t: %d\n", str, ret && len==strlen(str));
}

int main(void) {
	test("5.5");
	test("5.5 ");
	test(" 5.5 ");
	test("hello");
	test("123.ok");
	test("");
	return 0;
}
