]> rtime.felk.cvut.cz Git - rtems-devel.git/blobdiff - rtems-omk-template/appdl/examples/appdl_print.c
Simple application which object file can be used to test dlopen.
[rtems-devel.git] / rtems-omk-template / appdl / examples / appdl_print.c
diff --git a/rtems-omk-template/appdl/examples/appdl_print.c b/rtems-omk-template/appdl/examples/appdl_print.c
new file mode 100644 (file)
index 0000000..1b65160
--- /dev/null
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+  int i;
+  printf("%s: dynamicaly loaded code called\n", argv[0]);
+  for (i = 1; i < argc; i++) {
+    printf("%s: argument %i: %s\n", argv[0], i, argv[i]);
+  }
+  return 0;
+}