0.3.0: converge relibc to upstream 0.6.0 + Red Bear patches

This commit is contained in:
2026-07-06 19:13:08 +03:00
parent 1a0edd8eeb
commit 4ef7e57571
1466 changed files with 75236 additions and 13644 deletions
+33
View File
@@ -0,0 +1,33 @@
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
int values[] = { 23, 16, 8, 4, 42, 15 };
int cmpfunc (const void * a_ptr, const void * b_ptr) {
int a = *(const int *)a_ptr;
int b = *(const int *)b_ptr;
return a - b;
}
int main () {
size_t i;
printf("Before: ");
for(i = 0; i < ARRAY_SIZE(values); i++) {
printf("%d ", values[i]);
}
printf("\n");
qsort(values, ARRAY_SIZE(values), sizeof(int), cmpfunc);
printf("After: ");
for(i = 0; i < ARRAY_SIZE(values); i++) {
printf("%d ", values[i]);
}
printf("\n");
return 0;
}