From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- stories/poetry/MeinVortrag/05.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 stories/poetry/MeinVortrag/05.html (limited to 'stories/poetry/MeinVortrag/05.html') 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 @@ +

+<-->
+int printing( const char *fmt, ...) {
+  va_list ap;
+  char output[1024];
+  
+  va_start(ap, fmt);
+        
+  while( *fmt ) {
+    if( *fmt != '%' ) {
+        putc( *fmt++ );
+    } else { /* Parameter substituieren */
+      switch( *++fmt ) {
+      case 'd':
+          int a = va_arg( ap, int );
+          /* Zahl a ausgeben */
+          break;
+      case 's':
+          char *s = va_arg( ap, char *); 
+          /* String ausgeben */
+      ....
+    }
+  }
+  
+  va_end(ap);
+}
+

-- cgit v1.2.3