toaruos/libdemo.c
2016-12-01 23:24:35 +09:00

10 lines
185 B
C

#include <stdio.h>
#include <string.h>
extern char * _username;
int return_42(void) {
fprintf(stderr, "I am a dynamically loaded shared object. pid = %d\n", getpid());
return 42;
}