jehanne/qa/lib/c/va_copy.c

20 lines
257 B
C
Raw Normal View History

#include <u.h>
#include <lib9.h>
void
main(){
char *correct="0.987650\n";
static char result[128];
sprint(result, "%f\n", 0.98765f);
if(!strcmp(result, correct)){
print("PASS\n");
exits("PASS");
}
else{
print("FAIL\n");
exits("FAIL");
}
}