mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 10:40:00 +00:00
25 lines
489 B
C
25 lines
489 B
C
#include <stdio.h>
|
|
|
|
typedef unsigned long long u64;
|
|
|
|
u64 cleonos_libdemo_add(u64 left, u64 right) {
|
|
return left + right;
|
|
}
|
|
|
|
u64 cleonos_libdemo_mul(u64 left, u64 right) {
|
|
return left * right;
|
|
}
|
|
|
|
u64 cleonos_libdemo_hello(void) {
|
|
(void)puts("[libdemo] hello from libdemo.elf");
|
|
return 0ULL;
|
|
}
|
|
|
|
int cleonos_app_main(int argc, char **argv, char **envp) {
|
|
(void)argc;
|
|
(void)argv;
|
|
(void)envp;
|
|
(void)puts("[libdemo] dynamic library image ready");
|
|
return 0;
|
|
}
|