annotate third_party/libuv/docs/code/helloworld/main.c @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author |
MrJuneJune <me@mrjunejune.com> |
| date |
Fri, 23 Jan 2026 21:19:08 -0800 |
| parents |
948de3f54cea |
| children |
|
| rev |
line source |
|
160
|
1 #include <stdio.h>
|
|
|
2 #include <stdlib.h>
|
|
|
3 #include <uv.h>
|
|
|
4
|
|
|
5 int main() {
|
|
|
6 uv_loop_t *loop = malloc(sizeof(uv_loop_t));
|
|
|
7 uv_loop_init(loop);
|
|
|
8
|
|
|
9 printf("Now quitting.\n");
|
|
|
10 uv_run(loop, UV_RUN_DEFAULT);
|
|
|
11
|
|
|
12 uv_loop_close(loop);
|
|
|
13 free(loop);
|
|
|
14 return 0;
|
|
|
15 }
|