first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
This commit is contained in:
20
qa/lib/c/va_copy.c
Normal file
20
qa/lib/c/va_copy.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <u.h>
|
||||
#include <libc.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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user