summaryrefslogtreecommitdiff
path: root/rust/hello_world/component/my-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/hello_world/component/my-component.c')
-rw-r--r--rust/hello_world/component/my-component.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/hello_world/component/my-component.c b/rust/hello_world/component/my-component.c
new file mode 100644
index 0000000..fe09975
--- /dev/null
+++ b/rust/hello_world/component/my-component.c
@@ -0,0 +1,14 @@
+/*
+ * my-component.c
+ */
+
+#include "hello_world.h"
+
+void hello_world_greet(void)
+{
+ hello_world_string_t my_string;
+
+ hello_world_string_set(&my_string, "Hello, world!");
+
+ hello_world_name(&my_string);
+}