locale
This commit is contained in:
parent
661b992ed6
commit
8cb18041f7
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "../includes/quicksort.h"
|
#include "../includes/quicksort.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -52,7 +53,8 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(delay >= 0.0);
|
assert(delay >= 0.0);
|
||||||
printf("Done in %lf seconds.\n", delay);
|
setlocale(LC_NUMERIC, "fr_FR.UTF-8");
|
||||||
|
printf("%lf\n", delay);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Reference in a new issue