summaryrefslogtreecommitdiff
path: root/stories/poetry/MeinVortrag/05.html
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
committererdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
commit23f0e1561767dd8a396188e317bae5920d171ea8 (patch)
treea67f44e39ad8a45e42d60634488a65c37f3ad432 /stories/poetry/MeinVortrag/05.html
Initial import of my nikola website
Diffstat (limited to 'stories/poetry/MeinVortrag/05.html')
-rw-r--r--stories/poetry/MeinVortrag/05.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/stories/poetry/MeinVortrag/05.html b/stories/poetry/MeinVortrag/05.html
new file mode 100644
index 0000000..e124667
--- /dev/null
+++ b/stories/poetry/MeinVortrag/05.html
@@ -0,0 +1,27 @@
1<HTML><HEAD></HEAD><BODY><H1><PRE>
2<A HREF="04.html">&lt;-</A><A HREF="06.html">-></A>
3int printing( const char *fmt, ...) {
4 va_list ap;
5 char output[1024];
6
7 va_start(ap, fmt);
8
9 while( *fmt ) {
10 if( *fmt != '%' ) {
11 putc( *fmt++ );
12 } else { /* Parameter substituieren */
13 switch( *++fmt ) {
14 case 'd':
15 int a = va_arg( ap, int );
16 /* Zahl a ausgeben */
17 break;
18 case 's':
19 char *s = va_arg( ap, char *);
20 /* String ausgeben */
21 ....
22 }
23 }
24
25 va_end(ap);
26}
27</PRE></H1></BODY></HTML>