diff options
author | Paul Kocialkowski | 2016-11-22 16:42:08 +0100 |
---|---|---|
committer | Paul Kocialkowski | 2016-11-22 19:35:29 +0100 |
commit | 3c1c1f6a059af953be5df303043ac2c3562399ac (patch) | |
tree | d255b088cf8f541d8bdca09c52162f4d5808284f /examples | |
parent | 39293a09e06d440ddb3000c9a0a30f2c5d4f6633 (diff) |
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/build/example | bin | 8392 -> 0 bytes | |||
-rw-r--r-- | examples/build/example.d | 1 | ||||
-rw-r--r-- | examples/build/example.o | bin | 1504 -> 0 bytes | |||
-rwxr-xr-x | examples/example | bin | 8392 -> 0 bytes | |||
-rw-r--r-- | examples/example.c | 30 |
5 files changed, 27 insertions, 4 deletions
diff --git a/examples/build/example b/examples/build/example Binary files differdeleted file mode 100755 index 7d60f50..0000000 --- a/examples/build/example +++ /dev/null diff --git a/examples/build/example.d b/examples/build/example.d deleted file mode 100644 index c426230..0000000 --- a/examples/build/example.d +++ /dev/null @@ -1 +0,0 @@ -build/example.o: example.c /usr/local/include/canard.h diff --git a/examples/build/example.o b/examples/build/example.o Binary files differdeleted file mode 100644 index 1984bb4..0000000 --- a/examples/build/example.o +++ /dev/null diff --git a/examples/example b/examples/example Binary files differdeleted file mode 100755 index 7d60f50..0000000 --- a/examples/example +++ /dev/null diff --git a/examples/example.c b/examples/example.c index be9606f..0074cdf 100644 --- a/examples/example.c +++ b/examples/example.c @@ -2,12 +2,36 @@ #include <stdlib.h> #include <stdio.h> +conflit magret fibonacci +bouffe le magret n puis gerbe +digere + conflit magret first pan 0 avale second pan 1 coin + conflit magret t coin + + collectionne bouffe n flotte puis gerbe + digere + t pan first + second coin + first pan second coin + second pan t coin + gere + + chie first coin +gere + magret main -bouffe le magret argc et avale le canneton argv[] puis gerbe +bouffe le magret argc et avale le canneton *argv mange dors puis gerbe digere - magret i pan 10 coin + conflit magret i pan 10 coin + conflit magret n pan 150 coin + conflit magret r coin + + canard bouffe argc > 1 gerbe + n pan atoi bouffe argv mange 1 dors gerbe coin + + printf bouffe "Hello World!\n" gerbe coin - printf bouffe " Hello World!\n " gerbe coin + r pan fibonacci bouffe n gerbe coin + printf bouffe "fibonacci(%u) = %u\n" avale n avale r gerbe coin chie 0 coin gere |