/var/lib/pcp/testsuite/src/numberstr.c is in pcp-testsuite 3.8.12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | /*
* Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
*/
#include <pcp/pmapi.h>
#include <pcp/impl.h>
int
main(int argc, char *argv[])
{
double d;
char *endptr;
__pmSetProgname(argv[0]);
if (argc != 2) {
fprintf(stderr, "Usage: %s double\n", pmProgname);
exit(1);
}
d = strtod(argv[1], &endptr);
if (endptr != NULL && endptr[0] != '\0') {
fprintf(stderr, "%s does not smell like a double, bozo!\n", argv[1]);
exit(1);
}
printf("%s\n", pmNumberStr(d));
return 0;
}
|