-
Notifications
You must be signed in to change notification settings - Fork 10
inline_print
it4e edited this page Oct 4, 2016
·
3 revisions
<chl/chl.h>
[inline] print, print
print(str1, ...);
The inline CHL function print is used to output strings [str1]. Note that the function takes an unspecified number of strings, which it will output.
- str: a string
- ...: more strings
No return value.
main.c
#include <chl/chl.h>
#include <stdio.h>
int main() {
// Import view file
chl_view("index.vw");
}
index.vw (view file)
....
<body>
<{ print("Hello world!"); }>
</body>
....
Output: .... <body> Hello world! </body> ....
main.c
#include <chl/chl.h>
#include <stdio.h>
int main() {
// Import view file
chl_view("index.vw");
}
index.vw (view file)
....
<body>
<{ print("Hello world!", " My name is Peter."); }>
</body>
....
Output: .... <body> Hello world! My name is Peter. </body> ....