File:
[Coherent Logic Development] /
freem /
examples /
libfreem /
init /
init.c
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs
Sun Jan 19 02:04:04 2025 UTC (6 months, 2 weeks ago) by
snw
Branches:
MAIN,
CoherentLogicDevelopment
CVS tags:
v0-63-1-rc1,
v0-63-0-rc1,
v0-63-0,
v0-62-3,
v0-62-2,
v0-62-1,
v0-62-0,
start,
HEAD
FreeM
1: #include <stdio.h>
2: #include <string.h>
3: #include <freem.h>
4:
5: int main(int argc, char **argv, char **envp)
6: {
7: char namespace[256];
8:
9: /* get the namespace name to use */
10: printf("Enter FreeM namespace to use: ");
11: fgets(namespace, 255, stdin);
12:
13: /* remove the trailing newline */
14: namespace[strcspn(buffer, "\n")] = '\0';
15:
16: /* initialize libfreem using the provided namespace */
17: if(freem_init(namespace) == TRUE) {
18: printf("\nSuccess\n");
19: }
20: else {
21: printf("\nFailure\n");
22: }
23:
24: return 0;
25: }
26:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>