Debian Codegraph @

tests/API/SEAP/test_api_seap_string.c

raw symbols SCIP
1
2 #ifdef HAVE_CONFIG_H
3 #include <config.h>
4 #endif
5
6 #include <sexp.h>
7 #include <string.h>
8
9 int main (void)
10 {
11 SEXP_t *s_exp;
12 char *s1, *s2;
13
14 s1 = "Hello, world!";
15 s2 = "abcdefghijklmnopqrstuvwxyz";
16
17 setbuf (stdout, NULL);
18
19 s_exp = SEXP_string_new (s1, strlen (s1));
20 SEXP_fprintfa (stdout, s_exp);
21 putc ('\n', stdout);
22
23 SEXP_free (s_exp);
24
25 s_exp = SEXP_string_newf ("s2=%s", s2);
26 SEXP_fprintfa (stdout, s_exp);
27 putc ('\n', stdout);
28
29 SEXP_free (s_exp);
30
31 return (0);
32 }