jehanne/qa/lib/c/va_copy.c

21 lines
277 B
C

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